Rewrite installer without 3rd party installer lib.

This commit is contained in:
Nabeel Shahzad
2017-12-14 16:38:29 -06:00
parent 7966d6c5aa
commit 277a5f2d33
22 changed files with 581 additions and 174 deletions

View File

@@ -103,6 +103,11 @@ class CreateDatabase extends Command
}
}
protected function create_postgres($dbkey)
{
$this->error('Not supported yet!');
}
/**
* Execute the console command.
*
@@ -123,8 +128,15 @@ class CreateDatabase extends Command
if (config($dbkey . 'driver') === 'mysql') {
$this->create_mysql($dbkey);
} elseif (config($dbkey . 'driver') === 'sqlite') {
}
elseif (config($dbkey . 'driver') === 'sqlite') {
$this->create_sqlite($dbkey);
}
// TODO: Eventually
elseif (config($dbkey . 'driver') === 'postgres') {
$this->create_postgres($dbkey);
}
}
}