db: drop dead schema migrations (reticulum_dest, forum_enabled)

This commit is contained in:
blankie 2026-07-03 02:14:53 +00:00
parent c386091463
commit aaaacf79bb

View file

@ -248,17 +248,6 @@ def init_db():
" added_at TEXT DEFAULT (strftime('%Y-%m-%dT%H:%M:%S','now'))" " added_at TEXT DEFAULT (strftime('%Y-%m-%dT%H:%M:%S','now'))"
")" ")"
) )
# Migrate pages: add reticulum_dest column if missing
if "reticulum_dest" not in page_cols:
db.execute("ALTER TABLE pages ADD COLUMN reticulum_dest TEXT DEFAULT ''")
db.commit()
# Migrate subscriptions: add forum_enabled column
sub_cols = [row[1] for row in db.execute("PRAGMA table_info(subscriptions)").fetchall()]
if "forum_enabled" not in sub_cols:
db.execute("ALTER TABLE subscriptions ADD COLUMN forum_enabled INTEGER DEFAULT 0")
db.commit()
# Chunks table for semantic search embeddings # Chunks table for semantic search embeddings
db.execute( db.execute(
"CREATE TABLE IF NOT EXISTS chunks (" "CREATE TABLE IF NOT EXISTS chunks ("