Feature: Geburtstags-KI — 2 Modi (morgen: Ideen, heute: Hundeperspektive), DB-Cache, Abend-Tagebuch-Hinweis (SW by-v780)
This commit is contained in:
parent
af7fe7813e
commit
9ebd40aaae
7 changed files with 185 additions and 10 deletions
|
|
@ -2075,6 +2075,18 @@ def _migrate(conn_factory):
|
|||
_seed_help_articles(conn)
|
||||
logger.info("Migration: Hilfe/FAQ-Tabelle bereit.")
|
||||
|
||||
conn.executescript("""
|
||||
CREATE TABLE IF NOT EXISTS bday_ki_cache (
|
||||
dog_id INTEGER NOT NULL,
|
||||
year INTEGER NOT NULL,
|
||||
mode TEXT NOT NULL, -- 'tomorrow' | 'today'
|
||||
content TEXT NOT NULL,
|
||||
created_at TEXT DEFAULT (datetime('now')),
|
||||
PRIMARY KEY (dog_id, year, mode)
|
||||
);
|
||||
""")
|
||||
logger.info("Migration: bday_ki_cache Tabelle bereit.")
|
||||
|
||||
# ---- Feature: Subscription-Tier ----
|
||||
try:
|
||||
conn.execute("ALTER TABLE users ADD COLUMN subscription_tier TEXT DEFAULT 'standard'")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue