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