作者 lyh

gx复制项目数据

@@ -245,7 +245,7 @@ class CopyProject extends Command @@ -245,7 +245,7 @@ class CopyProject extends Command
245 $result1 = DB::connection('custom_mysql')->statement(get_object_vars($sql[0])['Create Table']); 245 $result1 = DB::connection('custom_mysql')->statement(get_object_vars($sql[0])['Create Table']);
246 @file_put_contents(storage_path('logs/copy_mysql_error.log'), var_export('创建对应表数据:'.$result1, true) . PHP_EOL, FILE_APPEND); 246 @file_put_contents(storage_path('logs/copy_mysql_error.log'), var_export('创建对应表数据:'.$result1, true) . PHP_EOL, FILE_APPEND);
247 // 3. 跳过指定的表 247 // 3. 跳过指定的表
248 - if (in_array($table, ['gl_customer_visit', 'gl_customer_visit_item', 'gl_inquiry_other', 'gl_inquiry_form_data', 'gl_inquiry_form'])) { 248 + if (in_array($table, ['gl_customer_visit', 'gl_customer_visit_item', 'gl_inquiry_other', 'gl_inquiry_form_data', 'gl_inquiry_form','gl_ai_blog', 'gl_ai_blog_author', 'gl_ai_blog_list','gl_ai_blog_log'])) {
249 continue; 249 continue;
250 } 250 }
251 // 4. 原生 SQL 插入数据(完全复制) 251 // 4. 原生 SQL 插入数据(完全复制)