Fix migration script

This commit is contained in:
myrmidex 2025-06-28 11:36:16 +02:00
parent 5520a16b6c
commit 79aaa21040

View file

@ -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;