芝麻web文件管理V1.00
编辑当前文件:/home/ezdajrnh/public_html/wp-content/plugins/google-listings-and-ads/src/DB/Installer.php
table_manager = $table_manager; $this->migrator = $migrator; } /** * Run installation logic for this class. * * @param string $old_version Previous version before updating. * @param string $new_version Current version after updating. */ public function install( string $old_version, string $new_version ): void { foreach ( $this->table_manager->get_tables() as $table ) { $table->install(); } // Run migrations. $this->migrator->migrate( $old_version, $new_version ); } /** * Logic to run when the plugin is first installed. */ public function first_install(): void { foreach ( $this->table_manager->get_tables() as $table ) { if ( $table instanceof FirstInstallInterface ) { $table->first_install(); } } } }