update
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,7 +6,11 @@ try {
|
||||
require_once("../lib/mydb.php");
|
||||
|
||||
$pdo = db_connect();
|
||||
$sql = file_get_contents("schema.sql");
|
||||
$schemaPath = __DIR__ . "/schema.sql";
|
||||
if (!file_exists($schemaPath)) {
|
||||
throw new Exception("schema.sql file not found at: " . $schemaPath);
|
||||
}
|
||||
$sql = file_get_contents($schemaPath);
|
||||
$pdo->exec($sql);
|
||||
echo "Table 'barobill_members' initialized successfully.";
|
||||
} catch (Throwable $e) {
|
||||
|
||||
Reference in New Issue
Block a user