Feature: App-Einstellungen in DB (preferred_theme neu, notes_ki+gassi_stunde schon drin) — geräteübergreifend sync (SW by-v785)
This commit is contained in:
parent
2ff6d4dfe4
commit
e8cf742911
8 changed files with 41 additions and 20 deletions
|
|
@ -2075,6 +2075,10 @@ def _migrate(conn_factory):
|
|||
_seed_help_articles(conn)
|
||||
logger.info("Migration: Hilfe/FAQ-Tabelle bereit.")
|
||||
|
||||
if 'preferred_theme' not in [row[1] for row in conn.execute("PRAGMA table_info(users)").fetchall()]:
|
||||
conn.execute("ALTER TABLE users ADD COLUMN preferred_theme TEXT DEFAULT 'system'")
|
||||
logger.info("Migration: preferred_theme Spalte zu users hinzugefügt.")
|
||||
|
||||
conn.executescript("""
|
||||
CREATE TABLE IF NOT EXISTS bday_ki_cache (
|
||||
dog_id INTEGER NOT NULL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue