From aaaacf79bb85e496bc1e45b3fbdf625c328a5fe5 Mon Sep 17 00:00:00 2001 From: blankie Date: Fri, 3 Jul 2026 02:14:53 +0000 Subject: [PATCH] db: drop dead schema migrations (reticulum_dest, forum_enabled) --- src/tinyweb/db.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/tinyweb/db.py b/src/tinyweb/db.py index 5006b74..664119d 100644 --- a/src/tinyweb/db.py +++ b/src/tinyweb/db.py @@ -248,17 +248,6 @@ def init_db(): " 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 db.execute( "CREATE TABLE IF NOT EXISTS chunks ("