generated from jric11/baseProject
7 lines
353 B
PHP
7 lines
353 B
PHP
|
|
<?php
|
||
|
|
if(PHP_SAPI!=='cli'){http_response_code(404);exit;}
|
||
|
|
require_once __DIR__.'/../classes/Base.php';
|
||
|
|
$db=(new Base())->connect();
|
||
|
|
foreach(explode(';',file_get_contents(__DIR__.'/../migrations/002_roster.sql')) as $sql){if(trim($sql))$db->exec($sql);}
|
||
|
|
echo "Club roster schema is ready. Existing accounts and administrative records were preserved.\n";
|