作者 lyh

gx

... ... @@ -616,7 +616,7 @@ class ProjectLogic extends BaseLogic
DB::connection('custom_mysql')->statement(get_object_vars($sql[0])['Create Table']);
$tables = Schema::getConnection()->getDoctrineSchemaManager()->listTableNames();
foreach ($table as $v1) {
DB::table($v1)->update(['project_id' => $news_project_id]);
DB::connection('custom_mysql')->table($v1)->update(['project_id' => $news_project_id]);
}
}
return true;
... ...