Files
MediaCollectorLibary/run_migrations.php
Lars Behrends ca2d3a6960 ...
2025-10-18 22:03:30 +02:00

19 lines
488 B
PHP

<?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";
}