正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -102,7 +102,7 @@ class Demo extends Command | @@ -102,7 +102,7 @@ class Demo extends Command | ||
| 102 | 102 | ||
| 103 | public function copyProduct(){ | 103 | public function copyProduct(){ |
| 104 | $tableName = 'gl_product'; | 104 | $tableName = 'gl_product'; |
| 105 | - $copyTableName = $tableName . '_c'; | 105 | + $copyTableName = 'gl_product_c'; |
| 106 | if (Schema::hasTable($copyTableName)) { | 106 | if (Schema::hasTable($copyTableName)) { |
| 107 | DB::statement("DROP TABLE {$copyTableName}"); | 107 | DB::statement("DROP TABLE {$copyTableName}"); |
| 108 | } | 108 | } |
-
请 注册 或 登录 后发表评论