Fix migration script
This commit is contained in:
parent
5520a16b6c
commit
79aaa21040
1 changed files with 7 additions and 0 deletions
|
|
@ -2,6 +2,13 @@
|
|||
<?php
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
// Ensure database file exists
|
||||
$dbPath = __DIR__ . '/../storage/database.sqlite';
|
||||
if (!file_exists($dbPath)) {
|
||||
touch($dbPath);
|
||||
}
|
||||
|
||||
require __DIR__ . '/../bootstrap/database.php';
|
||||
|
||||
use Illuminate\Filesystem\Filesystem;
|
||||
Loading…
Reference in a new issue