Suche: Notizen, Kalendereinträge, Board, Changelog jetzt vollständig im Frontend und Backend

This commit is contained in:
2026-06-05 13:17:24 +02:00
parent f5988d3af6
commit afc56d9fca
3 changed files with 190 additions and 18 deletions

View File

@@ -504,4 +504,21 @@ if (!db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='lin
`);
}
// ── Kalender-Event-Cache für Suche ────────────────────────────────────────────
if (!db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='calendar_event_cache'").get()) {
db.exec(`
CREATE TABLE calendar_event_cache (
id INTEGER PRIMARY KEY AUTOINCREMENT,
feed_id INTEGER NOT NULL REFERENCES calendar_feeds(id) ON DELETE CASCADE,
user_id INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE,
summary TEXT NOT NULL DEFAULT '',
description TEXT NOT NULL DEFAULT '',
location TEXT NOT NULL DEFAULT '',
start_dt TEXT,
end_dt TEXT,
synced_at DATETIME DEFAULT NULL
)
`);
}
module.exports = db;