initial commit

This commit is contained in:
root
2026-03-26 15:03:38 +07:00
commit 6464c750f2
19 changed files with 2129 additions and 0 deletions

10
migrate.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
require_once 'db.php';
$schema = file_get_contents('schema_v2.sql');
try {
$pdo->exec($schema);
echo "Migration successful.";
} catch(Exception $e) {
// If columns already exist, sqlite throws exception. We can ignore it safely for alter table if rerun.
echo "Migration finished (or already applied).";
}