正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -616,7 +616,7 @@ class ProjectLogic extends BaseLogic | @@ -616,7 +616,7 @@ class ProjectLogic extends BaseLogic | ||
| 616 | DB::connection('custom_mysql')->statement(get_object_vars($sql[0])['Create Table']); | 616 | DB::connection('custom_mysql')->statement(get_object_vars($sql[0])['Create Table']); |
| 617 | $tables = Schema::getConnection()->getDoctrineSchemaManager()->listTableNames(); | 617 | $tables = Schema::getConnection()->getDoctrineSchemaManager()->listTableNames(); |
| 618 | foreach ($table as $v1) { | 618 | foreach ($table as $v1) { |
| 619 | - DB::table($v1)->update(['project_id' => $news_project_id]); | 619 | + DB::connection('custom_mysql')->table($v1)->update(['project_id' => $news_project_id]); |
| 620 | } | 620 | } |
| 621 | } | 621 | } |
| 622 | return true; | 622 | return true; |
-
请 注册 或 登录 后发表评论