Board: gelber Punkt bei befördertem Wunsch, promoted_at Tracking
This commit is contained in:
@@ -302,6 +302,8 @@ if (!db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='boa
|
||||
const boardCols = db.prepare("PRAGMA table_info(board_items)").all().map(r => r.name);
|
||||
if (boardCols.length && !boardCols.includes('promoted_from_wish'))
|
||||
db.exec("ALTER TABLE board_items ADD COLUMN promoted_from_wish INTEGER NOT NULL DEFAULT 0");
|
||||
if (boardCols.length && !boardCols.includes('promoted_at'))
|
||||
db.exec("ALTER TABLE board_items ADD COLUMN promoted_at DATETIME DEFAULT NULL");
|
||||
if (!db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='board_reads'").get()) {
|
||||
db.exec(`
|
||||
CREATE TABLE board_reads (
|
||||
|
||||
Reference in New Issue
Block a user