This commit is contained in:
2025-10-21 22:29:44 +02:00
parent 04891bf449
commit a26c92ff2b
4 changed files with 27 additions and 11 deletions

View File

@@ -56,7 +56,8 @@ function initializeDatabase() {
`);
// Monster catches view - derived from actual step data
// Drop the old table if it exists and recreate as a view
// Drop the old table/view if it exists and recreate as a view
db.run(`DROP VIEW IF EXISTS monster_catches`);
db.run(`DROP TABLE IF EXISTS monster_catches`);
db.run(`
CREATE VIEW IF NOT EXISTS monster_catches AS