Fix: calendar_token Migration ohne UNIQUE (SQLite erlaubt kein ALTER TABLE ADD UNIQUE)

This commit is contained in:
rene 2026-04-16 22:41:51 +02:00
parent a4f74b6c64
commit 44fcb9bc16

View file

@ -443,7 +443,7 @@ def _migrate(conn_factory):
("users", "is_banned", "INTEGER NOT NULL DEFAULT 0"), ("users", "is_banned", "INTEGER NOT NULL DEFAULT 0"),
("users", "ban_reason", "TEXT"), ("users", "ban_reason", "TEXT"),
# WebCal: Kalender-Abo-Token # WebCal: Kalender-Abo-Token
("users", "calendar_token", "TEXT UNIQUE"), ("users", "calendar_token", "TEXT"),
] ]
with conn_factory() as conn: with conn_factory() as conn:
for table, column, col_type in migrations: for table, column, col_type in migrations: