19 lines
464 B
PHP
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";
|
|
}
|
|
|