mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
migrations check if table exists
This commit is contained in:
@@ -106,7 +106,7 @@ class Install
|
||||
$filename = basename($path);
|
||||
$count = preg_match('/create_(.*)_table.php/', $filename, $matches);
|
||||
if ($count) {
|
||||
$tables[$matches[1]] = '';
|
||||
$tables[$matches[1]] = $filename;
|
||||
}
|
||||
}
|
||||
return $tables;
|
||||
|
||||
@@ -62,7 +62,7 @@ if ($currentStep == 3) {
|
||||
try {
|
||||
// $install->createTable($shouldCreateTable);
|
||||
if (!WITH_LARAVEL) {
|
||||
throw new \RuntimeException('Larvel is not avaliable.');
|
||||
throw new \RuntimeException('Laravel is not avaliable.');
|
||||
}
|
||||
$command = "php " . ROOT_PATH . "artisan install:migrate";
|
||||
$result = exec($command, $output, $result_code);
|
||||
|
||||
Reference in New Issue
Block a user