Files

7 lines
353 B
PHP
Raw Permalink Normal View History

<?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";