|
...
|
...
|
@@ -72,7 +72,6 @@ class ProjectServer extends BaseService |
|
|
|
public static function initTable($project)
|
|
|
|
{
|
|
|
|
$database_name = DB::connection('custom_tmp_mysql')->getDatabaseName();
|
|
|
|
|
|
|
|
$table = Schema::connection('custom_tmp_mysql')->getAllTables();
|
|
|
|
$table = array_column($table, 'Tables_in_' . $database_name);
|
|
|
|
foreach ($table as $v) {
|
|
...
|
...
|
@@ -80,7 +79,6 @@ class ProjectServer extends BaseService |
|
|
|
if ($has_table) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
$sql = DB::connection('custom_tmp_mysql')->select("SHOW CREATE TABLE {$v}");
|
|
|
|
DB::connection('custom_mysql')->statement(get_object_vars($sql[0])['Create Table']);
|
|
|
|
}
|
...
|
...
|
|