作者 lyh

gx

... ... @@ -615,7 +615,7 @@ class ProjectLogic extends BaseLogic
$sql = DB::connection('custom_tmp_mysql_copy')->select("SHOW CREATE TABLE {$v}");
DB::connection('custom_mysql')->statement(get_object_vars($sql[0])['Create Table']);
Schema::table($v, function ($v) use ($news_project_id) {
$v->update(['project_id' => $news_project_id]);
DB::table($v)->update(['project_id' => $news_project_id]);
});
}
return true;
... ...