This commit is contained in:
Lars Behrends
2025-10-18 22:03:30 +02:00
parent f4c1cfc164
commit ca2d3a6960
45 changed files with 4827 additions and 326 deletions

18
run_migrations.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
require_once __DIR__ . '/vendor/autoload.php';
try {
echo "=== Running Database Migrations ===\n";
$config = require __DIR__ . '/config/database.php';
\App\Database\Database::setConfig($config);
echo "Running migrations...\n";
\App\Database\Database::migrate();
echo "✓ Migrations completed successfully!\n";
} catch (Exception $e) {
echo "Migration error: " . $e->getMessage() . "\n";
echo "Stack trace:\n" . $e->getTraceAsString() . "\n";
}