作者 lyh

gx

@@ -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;