Implement Enterprise Logic (Redis, Phone Auth, Full Schema)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
// Script to run database migrations
|
||||
require_once dirname(__DIR__) . '/app/bootstrap.php';
|
||||
|
||||
use App\Core\Database;
|
||||
|
||||
try {
|
||||
$db = Database::getInstance()->getConnection();
|
||||
|
||||
$sql = file_get_contents(dirname(__DIR__) . '/database_schema.sql');
|
||||
|
||||
$db->exec($sql);
|
||||
|
||||
echo "Database migrations executed successfully!\n";
|
||||
} catch (\Exception $e) {
|
||||
echo "Error executing migrations: " . $e->getMessage() . "\n";
|
||||
}
|
||||
Reference in New Issue
Block a user