作者 lyh

gx

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