mirror of
https://github.com/ceratic/MediaCollectorLibary.git
synced 2026-05-13 23:56:46 +02:00
19 lines
488 B
PHP
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";
|
|
}
|