Plugin Directory

Changeset 1951188


Ignore:
Timestamp:
10/04/2018 04:06:10 AM (8 years ago)
Author:
conoha
Message:

uploaded.

Location:
wing-migrator/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • wing-migrator/trunk/classes/actions/class-wwm-backup-action-backup.php

    r1949573 r1951188  
    113113    {
    114114        $this->logger->info('===========  start compress files  ===========');
     115        $this->wwm_info->set_backup_url( $this->make_url( $this->backup_dir_name ) );
    115116
    116117        if ( !extension_loaded('zip') ) {
  • wing-migrator/trunk/classes/actions/class-wwm-restore-action-info.php

    r1949573 r1951188  
    1010        return array(
    1111            'status' => $info->get_status(),
     12            'restore_dir_name' => $info->get_restore_dir_name(),
    1213            'start_datetime' => $info->get_start_datetime(),
    1314            'finish_datetime' => $info->get_finish_datetime()
  • wing-migrator/trunk/classes/actions/class-wwm-restore-action-restore.php

    r1949573 r1951188  
    8181        return array(
    8282            'status' => $this->wwm_info->get_status(),
     83            'restore_dir_name' => $this->wwm_info->get_restore_dir_name(),
    8384            'start_datetime' => $this->wwm_info->get_start_datetime(),
    8485            'finish_datetime' => $this->wwm_info->get_finish_datetime()
     
    106107        Wwm_Server_Info::logging_info( $this->logger );
    107108
     109        $this->wwm_info->set_restore_dir_name( $this->restore_dir_name );
    108110        $this->wwm_info->set_restore_dir_path( $this->restore_dir_path );
    109111        $this->wwm_info->set_status(WWM_MIGRATION_STATUS_RESTORE_START );
  • wing-migrator/trunk/classes/class-wwm-migration-info.php

    r1949573 r1951188  
    256256class Wwm_Restore_Info extends Wwm_Info
    257257{
     258    private $restore_dir_name;
    258259    private $restore_dir_path;
    259260
     
    271272            $this->start_datetime = $data->get_start_datetime();
    272273            $this->finish_datetime = $data->get_finish_datetime();
     274            $this->restore_dir_name = $data->get_restore_dir_name();
    273275            $this->restore_dir_path = $data->get_restore_dir_path();
    274276            $this->force_stop = $data->is_force_stop();
     
    282284            'backup_key' => $this->get_backup_key(),
    283285            'backup_url'=> $this->get_backup_url(),
     286            'restore_dir_name' => $this->get_restore_dir_name(),
    284287            'restore_dir_path' => $this->get_restore_dir_path(),
    285288            'start_datetime' => $this->get_start_datetime(),
     
    300303    }
    301304
     305    public function get_restore_dir_name()
     306    {
     307        return $this->restore_dir_name;
     308    }
     309
     310    public function set_restore_dir_name( $restore_dir_name )
     311    {
     312        $this->restore_dir_name = $restore_dir_name;
     313        return $this;
     314    }
     315   
    302316    public function get_restore_dir_path()
    303317    {
  • wing-migrator/trunk/classes/mysql/class-wwm-migration-mysql-query.php

    r1949573 r1951188  
    202202
    203203            // insert
     204            $this->logger->info( '---------- priority table insert----------' );
    204205            foreach ( $priority_tables as $priority_table )
    205206            {
     207                $this->logger->info( 'table data create: ' . $priority_table );
    206208                $this->create_insert_table( $wpdb, $priority_table, $prefix, $table_structures );
    207209            }
     210            $this->logger->info( '---------- normal table insert----------' );
    208211            foreach ( $normal_tables as $normal_table )
    209212            {
     213                $this->logger->info( 'table data create: ' . $normal_table );
    210214                $this->create_insert_table( $wpdb, $normal_table, $prefix, $table_structures );
    211215            }
     
    264268        $result = $wpdb->query( $sql );
    265269        if ( $result === false) {
    266             $this->logger->warning('execute query failed. : ' . $sql);
     270            $this->logger->warning('execute query failed. : ' . substr( $sql, 0, 200) . '...' );
    267271        }
    268272    }
  • wing-migrator/trunk/wing-migrator.php

    r1949573 r1951188  
    3131
    3232define( 'WWM_BACKUP_INFO_WP_OPTION_KEY', 'wwm_backup_info' );
    33 define( 'WWM_BACKUP_BULK_INSERT_LIMIT', 200 );
     33define( 'WWM_BACKUP_BULK_INSERT_LIMIT', 20 );
    3434
    3535define( 'WWM_RESTORE_INFO_WP_OPTION_KEY', 'wwm_restore_info' );
Note: See TracChangeset for help on using the changeset viewer.