|
...
|
...
|
@@ -93,7 +93,7 @@ class EditVideoMp4 extends Command |
|
|
|
public function copyTable(){
|
|
|
|
// 原始表名和新表名
|
|
|
|
$originalTableName = "gl_web_template";
|
|
|
|
$newTableName = "gl_web_template_copy";
|
|
|
|
$newTableName = "gl_web_template_c";
|
|
|
|
// 检查原始表是否存在
|
|
|
|
DB::connection('custom_mysql')->select("SHOW TABLES LIKE '{$originalTableName}'");
|
|
|
|
DB::connection('custom_mysql')->statement("CREATE TABLE {$newTableName} LIKE {$originalTableName}");
|
...
|
...
|
|