正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -615,7 +615,7 @@ class ProjectLogic extends BaseLogic | @@ -615,7 +615,7 @@ class ProjectLogic extends BaseLogic | ||
| 615 | $sql = DB::connection('custom_tmp_mysql_copy')->select("SHOW CREATE TABLE {$v}"); | 615 | $sql = DB::connection('custom_tmp_mysql_copy')->select("SHOW CREATE TABLE {$v}"); |
| 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 | Schema::table($v, function ($v) use ($news_project_id) { | 617 | Schema::table($v, function ($v) use ($news_project_id) { |
| 618 | - $v->update(['project_id' => $news_project_id]); | 618 | + DB::table($v)->update(['project_id' => $news_project_id]); |
| 619 | }); | 619 | }); |
| 620 | } | 620 | } |
| 621 | return true; | 621 | return true; |
-
请 注册 或 登录 后发表评论