38395-vm/db/run_migrations.php
Flatlogic Bot 4ad8ad11c8 sadiq
2026-02-13 08:34:16 +00:00

19 lines
464 B
PHP

<?php
require_once __DIR__ . '/config.php';
try {
$pdo = db();
$migrationFile = __DIR__ . '/migrations/2026_02_13_v2_enterprise.sql';
if (file_exists($migrationFile)) {
$sql = file_get_contents($migrationFile);
$pdo->exec($sql);
echo "Migration executed successfully.\n";
} else {
echo "Migration file not found.\n";
}
} catch (PDOException $e) {
echo "Migration Error: " . $e->getMessage() . "\n";
}