Changeset 2002120
- Timestamp:
- 12/27/2018 07:25:31 AM (7 years ago)
- Location:
- wing-migrator/trunk
- Files:
-
- 4 edited
-
classes/mysql/class-wwm-migration-mysql-query.php (modified) (1 diff)
-
classes/utils/class-wwm-migration-zip.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wing-migrator.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wing-migrator/trunk/classes/mysql/class-wwm-migration-mysql-query.php
r1951188 r2002120 158 158 $table_structures = array(); 159 159 $this->logger->info('***** tables *****'); 160 foreach ( $wpdb->get_results( "SHOW TABLES", ARRAY_N ) as $table ) { 161 $table_name = $table[0]; 162 163 if ( $wpdb->prefix != "wp_" && preg_match("/^wp_/", $table_name)) { 160 $table_list_query = "SELECT table_name, table_rows, table_type FROM INFORMATION_SCHEMA.TABLES WHERE table_type = 'BASE TABLE'"; 161 foreach ( $wpdb->get_results( $table_list_query, ARRAY_A ) as $table ) { 162 $table_name = $table['table_name']; 163 $table_rows = $table['table_rows']; 164 $this->logger->info( "{$table_name}({$table_rows} rows)" ); 165 166 if ( $wpdb->prefix != "wp_" 167 && preg_match("/^wp_/", $table_name) 168 && !preg_match("/^{$wpdb->prefix}/", $table_name)) { 169 $this->logger->info( "skip:{$table_name}" ); 164 170 continue; 165 171 } 166 172 173 167 174 $query_table_name = $this->get_table_name( $wpdb, $prefix, $table_name ); 168 $this->logger->info( $table_name );169 175 array_push( $tables, $table_name ); 170 176 $this->write_line("DROP TABLE IF EXISTS `{$query_table_name}`;"); -
wing-migrator/trunk/classes/utils/class-wwm-migration-zip.php
r1953632 r2002120 112 112 } 113 113 $zip_file_path = 'wp-content' . DIRECTORY_SEPARATOR . str_replace(WP_CONTENT_DIR . DIRECTORY_SEPARATOR, '', $file_path); 114 $zip_file_path = mb_convert_encoding($zip_file_path, "utf-8" ); 114 115 $this->zip->addFile( $file_path, $zip_file_path ); 115 116 $file_count++; -
wing-migrator/trunk/readme.txt
r1949573 r2002120 5 5 Tested up to: 4.9.7 6 6 Requires PHP: 5.3 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 52 52 53 53 == Changelog == 54 = 1.0.1 = 55 * bug fix. 56 54 57 = 1.0.0 = 55 58 * 初期リリース -
wing-migrator/trunk/wing-migrator.php
r1951188 r2002120 4 4 Plugin URI: https://wordpress.org/plugins/wing-migrator/ 5 5 Description: ConoHa WINGのWordPressで「WING WordPress Migration」をご利用いただくためのプラグインです。 6 Version: 1.0. 06 Version: 1.0.1 7 7 Author: GMO Internet Inc. 8 8 Author URI: https://www.conoha.jp/
Note: See TracChangeset
for help on using the changeset viewer.