feat: add archived column to sessions table and isSunday helper

Made-with: Cursor
This commit is contained in:
cottongin
2026-03-23 01:40:07 -04:00
parent 4da2c15d56
commit 35474e5df4
2 changed files with 16 additions and 0 deletions

View File

@@ -56,6 +56,13 @@ function initializeDatabase() {
)
`);
// Add archived column if it doesn't exist (for existing databases)
try {
db.exec(`ALTER TABLE sessions ADD COLUMN archived INTEGER DEFAULT 0`);
} catch (err) {
// Column already exists, ignore error
}
// Session games table
db.exec(`
CREATE TABLE IF NOT EXISTS session_games (