feat: Logs zeigen jetzt auch Geraetetyp/Browser bei oeffentlichen Link-Besuchen

This commit is contained in:
2026-07-18 16:22:58 +02:00
parent b508d449b6
commit 8b1583de7c
7 changed files with 46 additions and 8 deletions

View File

@@ -673,5 +673,10 @@ db.exec(`
created_at DATETIME
)
`);
{
const cols = db.pragma('table_info(public_access_log)').map(c => c.name);
if (!cols.includes('device'))
db.exec("ALTER TABLE public_access_log ADD COLUMN device TEXT NOT NULL DEFAULT ''");
}
module.exports = db;