|
...
|
...
|
@@ -76,7 +76,8 @@ class EditVideoMp4 extends Command |
|
|
|
$newTableName = "gl_web_template_copy";
|
|
|
|
// 检查原始表是否存在
|
|
|
|
$result = DB::connection('custom_mysql')->query("SHOW TABLES LIKE '{$originalTableName}'");
|
|
|
|
if ($result->num_rows == 1) {
|
|
|
|
dd($result);
|
|
|
|
if (count($result) == 1) {
|
|
|
|
// 复制原始表结构到新表
|
|
|
|
DB::connection('custom_mysql')->query("CREATE TABLE {$newTableName} LIKE {$originalTableName}");
|
|
|
|
// 复制原始表数据到新表
|
...
|
...
|
|