Changeset 1951188
- Timestamp:
- 10/04/2018 04:06:10 AM (8 years ago)
- Location:
- wing-migrator/trunk
- Files:
-
- 6 edited
-
classes/actions/class-wwm-backup-action-backup.php (modified) (1 diff)
-
classes/actions/class-wwm-restore-action-info.php (modified) (1 diff)
-
classes/actions/class-wwm-restore-action-restore.php (modified) (2 diffs)
-
classes/class-wwm-migration-info.php (modified) (4 diffs)
-
classes/mysql/class-wwm-migration-mysql-query.php (modified) (2 diffs)
-
wing-migrator.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wing-migrator/trunk/classes/actions/class-wwm-backup-action-backup.php
r1949573 r1951188 113 113 { 114 114 $this->logger->info('=========== start compress files ==========='); 115 $this->wwm_info->set_backup_url( $this->make_url( $this->backup_dir_name ) ); 115 116 116 117 if ( !extension_loaded('zip') ) { -
wing-migrator/trunk/classes/actions/class-wwm-restore-action-info.php
r1949573 r1951188 10 10 return array( 11 11 'status' => $info->get_status(), 12 'restore_dir_name' => $info->get_restore_dir_name(), 12 13 'start_datetime' => $info->get_start_datetime(), 13 14 'finish_datetime' => $info->get_finish_datetime() -
wing-migrator/trunk/classes/actions/class-wwm-restore-action-restore.php
r1949573 r1951188 81 81 return array( 82 82 'status' => $this->wwm_info->get_status(), 83 'restore_dir_name' => $this->wwm_info->get_restore_dir_name(), 83 84 'start_datetime' => $this->wwm_info->get_start_datetime(), 84 85 'finish_datetime' => $this->wwm_info->get_finish_datetime() … … 106 107 Wwm_Server_Info::logging_info( $this->logger ); 107 108 109 $this->wwm_info->set_restore_dir_name( $this->restore_dir_name ); 108 110 $this->wwm_info->set_restore_dir_path( $this->restore_dir_path ); 109 111 $this->wwm_info->set_status(WWM_MIGRATION_STATUS_RESTORE_START ); -
wing-migrator/trunk/classes/class-wwm-migration-info.php
r1949573 r1951188 256 256 class Wwm_Restore_Info extends Wwm_Info 257 257 { 258 private $restore_dir_name; 258 259 private $restore_dir_path; 259 260 … … 271 272 $this->start_datetime = $data->get_start_datetime(); 272 273 $this->finish_datetime = $data->get_finish_datetime(); 274 $this->restore_dir_name = $data->get_restore_dir_name(); 273 275 $this->restore_dir_path = $data->get_restore_dir_path(); 274 276 $this->force_stop = $data->is_force_stop(); … … 282 284 'backup_key' => $this->get_backup_key(), 283 285 'backup_url'=> $this->get_backup_url(), 286 'restore_dir_name' => $this->get_restore_dir_name(), 284 287 'restore_dir_path' => $this->get_restore_dir_path(), 285 288 'start_datetime' => $this->get_start_datetime(), … … 300 303 } 301 304 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 302 316 public function get_restore_dir_path() 303 317 { -
wing-migrator/trunk/classes/mysql/class-wwm-migration-mysql-query.php
r1949573 r1951188 202 202 203 203 // insert 204 $this->logger->info( '---------- priority table insert----------' ); 204 205 foreach ( $priority_tables as $priority_table ) 205 206 { 207 $this->logger->info( 'table data create: ' . $priority_table ); 206 208 $this->create_insert_table( $wpdb, $priority_table, $prefix, $table_structures ); 207 209 } 210 $this->logger->info( '---------- normal table insert----------' ); 208 211 foreach ( $normal_tables as $normal_table ) 209 212 { 213 $this->logger->info( 'table data create: ' . $normal_table ); 210 214 $this->create_insert_table( $wpdb, $normal_table, $prefix, $table_structures ); 211 215 } … … 264 268 $result = $wpdb->query( $sql ); 265 269 if ( $result === false) { 266 $this->logger->warning('execute query failed. : ' . $sql);270 $this->logger->warning('execute query failed. : ' . substr( $sql, 0, 200) . '...' ); 267 271 } 268 272 } -
wing-migrator/trunk/wing-migrator.php
r1949573 r1951188 31 31 32 32 define( 'WWM_BACKUP_INFO_WP_OPTION_KEY', 'wwm_backup_info' ); 33 define( 'WWM_BACKUP_BULK_INSERT_LIMIT', 20 0);33 define( 'WWM_BACKUP_BULK_INSERT_LIMIT', 20 ); 34 34 35 35 define( 'WWM_RESTORE_INFO_WP_OPTION_KEY', 'wwm_restore_info' );
Note: See TracChangeset
for help on using the changeset viewer.