mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 23:01:29 +00:00
Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
@@ -97,18 +97,16 @@ if (! $error) {
|
||||
);
|
||||
$pdo->exec('SET FOREIGN_KEY_CHECKS=0;');
|
||||
|
||||
|
||||
try {
|
||||
$DbSetup->processSQLFile(); // Setup default schema
|
||||
ColorCLI::doEcho(ColorCLI::header('Migrating tables and populating them'));
|
||||
passthru('php '.NN_ROOT.'artisan migrate');
|
||||
passthru('php '.NN_ROOT.'artisan db:seed');
|
||||
} catch (\RuntimeException $err){
|
||||
} catch (\RuntimeException $err) {
|
||||
$error = true;
|
||||
ColorCLI::doEcho(ColorCLI::error('Error (' . $err->getMessage() . ')'));
|
||||
ColorCLI::doEcho(ColorCLI::error('Error ('.$err->getMessage().')'));
|
||||
}
|
||||
|
||||
|
||||
if (! $error) {
|
||||
// Check one of the standard tables was created and has data.
|
||||
$dbInstallWorked = false;
|
||||
|
||||
Reference in New Issue
Block a user