Feature: Wurf-Buchstabe (A–Z) + Wurf-Name — DB, Backend, Formular, Kartenanzeige (SW by-v912)

This commit is contained in:
rene 2026-05-13 19:58:50 +02:00
parent ca9d9a05c5
commit 53f0cb37d6
7 changed files with 56 additions and 15 deletions

View file

@ -1353,6 +1353,13 @@ def _migrate(conn_factory):
);
CREATE INDEX IF NOT EXISTS idx_litters_breeder ON litters(breeder_id, created_at DESC);
CREATE INDEX IF NOT EXISTS idx_litters_status ON litters(status, sichtbar);
# wurf_rang + wurf_name Spalten nachrüsten
try:
conn.execute("ALTER TABLE litters ADD COLUMN wurf_rang TEXT")
except Exception: pass
try:
conn.execute("ALTER TABLE litters ADD COLUMN wurf_name TEXT")
except Exception: pass
CREATE TABLE IF NOT EXISTS puppies (
id INTEGER PRIMARY KEY AUTOINCREMENT,