fixes and stuff
This commit is contained in:
1 parent
8ac0567e66
commit
f868219981
10 files changed
+141
-115
No files matched your search
@@ -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