Plugin Directory

Changeset 2002120


Ignore:
Timestamp:
12/27/2018 07:25:31 AM (7 years ago)
Author:
conoha
Message:

update version 1.0.1.
bug fixed.

Location:
wing-migrator/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wing-migrator/trunk/classes/mysql/class-wwm-migration-mysql-query.php

    r1951188 r2002120  
    158158            $table_structures = array();
    159159            $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}" );
    164170                    continue;
    165171                }
    166172
     173
    167174                $query_table_name = $this->get_table_name( $wpdb, $prefix, $table_name );
    168                 $this->logger->info( $table_name );
    169175                array_push( $tables, $table_name );
    170176                $this->write_line("DROP TABLE IF EXISTS `{$query_table_name}`;");
  • wing-migrator/trunk/classes/utils/class-wwm-migration-zip.php

    r1953632 r2002120  
    112112            }
    113113            $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" );
    114115            $this->zip->addFile( $file_path, $zip_file_path );
    115116            $file_count++;
  • wing-migrator/trunk/readme.txt

    r1949573 r2002120  
    55Tested up to: 4.9.7
    66Requires PHP: 5.3
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5252
    5353== Changelog ==
     54= 1.0.1 =
     55* bug fix.
     56
    5457= 1.0.0 =
    5558* 初期リリース
  • wing-migrator/trunk/wing-migrator.php

    r1951188 r2002120  
    44Plugin URI: https://wordpress.org/plugins/wing-migrator/
    55Description: ConoHa WINGのWordPressで「WING WordPress Migration」をご利用いただくためのプラグインです。
    6 Version: 1.0.0
     6Version: 1.0.1
    77Author: GMO Internet Inc.
    88Author URI: https://www.conoha.jp/
Note: See TracChangeset for help on using the changeset viewer.