fixes and stuff
This commit is contained in:
@@ -16,6 +16,15 @@ class SetupDatabase extends Command
|
||||
|
||||
public function handle()
|
||||
{
|
||||
|
||||
$dbConnection = config("lucent.database");
|
||||
$databasePath = config("database.connections.$dbConnection.database");
|
||||
|
||||
if(file_exists($databasePath)){
|
||||
$this->error("Database already exists.");
|
||||
return 0;
|
||||
}
|
||||
touch($databasePath);
|
||||
$this->tableUsers();
|
||||
$this->tableRecords();
|
||||
$this->tableRevisions();
|
||||
|
||||
Reference in New Issue
Block a user