Apply fixes from StyleCI

[ci skip] [skip ci]
This commit is contained in:
DariusIII
2018-01-18 11:26:29 +00:00
committed by StyleCI Bot
parent 59eecdfd0d
commit a91cafc79a
+2 -4
View File
@@ -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;