fix:
This commit is contained in:
13
server/db.js
13
server/db.js
@@ -236,6 +236,19 @@ function runMigrations(db) {
|
||||
INSERT OR IGNORE INTO share_count (id, total) VALUES (1, 0);
|
||||
`)
|
||||
} catch (_) {}
|
||||
try {
|
||||
exec(`
|
||||
CREATE TABLE IF NOT EXISTS display_stats (
|
||||
id INTEGER PRIMARY KEY CHECK (id = 1),
|
||||
viewers INTEGER NULL,
|
||||
cumulative INTEGER NULL,
|
||||
share_count INTEGER NULL,
|
||||
like_count INTEGER NULL,
|
||||
feedback_count INTEGER NULL
|
||||
);
|
||||
INSERT OR IGNORE INTO display_stats (id) VALUES (1);
|
||||
`)
|
||||
} catch (_) {}
|
||||
}
|
||||
|
||||
async function initDb() {
|
||||
|
||||
Reference in New Issue
Block a user