diff --git a/src/Console/TransExportCommend.php b/src/Console/TransExportCommend.php index 0922882..ff6214c 100644 --- a/src/Console/TransExportCommend.php +++ b/src/Console/TransExportCommend.php @@ -47,7 +47,7 @@ public function handle(): void ]; })->toArray(); - $tables = Table::all()->mapWithKeys(function(TableInterface $table){ + $tables = Table::all()->mapWithKeys(function (TableInterface $table) { return [$table->TABLE_NAME => $table->TABLE_COMMENT]; })->toArray(); @@ -59,6 +59,8 @@ public function handle(): void if (!file_exists($dir) && !mkdir($dir, true) && !is_dir($dir)) { throw new \RuntimeException(sprintf('Directory "%s" was not created', $dir)); } + $old = require($dir . '/columns.php'); + $response = array_merge($response, $old); File::put( $dir . '/columns.php',