diff --git a/src/cmdforge/registry/db.py b/src/cmdforge/registry/db.py index 5bd9604..08d8375 100644 --- a/src/cmdforge/registry/db.py +++ b/src/cmdforge/registry/db.py @@ -243,9 +243,8 @@ CREATE INDEX IF NOT EXISTS idx_content_pages_type ON content_pages(content_type, CREATE INDEX IF NOT EXISTS idx_audit_log_target ON audit_log(target_type, target_id); CREATE INDEX IF NOT EXISTS idx_audit_log_actor ON audit_log(actor_id); CREATE INDEX IF NOT EXISTS idx_audit_log_created ON audit_log(created_at DESC); -CREATE INDEX IF NOT EXISTS idx_tools_moderation ON tools(moderation_status, visibility); -CREATE INDEX IF NOT EXISTS idx_publishers_role ON publishers(role); -CREATE INDEX IF NOT EXISTS idx_publishers_banned ON publishers(banned); +-- Note: idx_tools_moderation, idx_publishers_role, idx_publishers_banned are created +-- in migrate_db() to support upgrading existing databases without these columns CREATE TABLE IF NOT EXISTS pageviews ( id INTEGER PRIMARY KEY AUTOINCREMENT,