fix(gate-b): fresh-db install path - conditional guards on plugin-table migrations + dual-path convergence migrations
Check Cross-Plugin Imports / check (push) Has been cancelled

This commit is contained in:
Agent Zero
2026-08-23 21:36:56 +02:00
parent e3fb4728d7
commit ad7c763e59
24 changed files with 433 additions and 116 deletions
@@ -0,0 +1,5 @@
-- Dual-path convergence (Gate B): add the folder_id column that Alembic
-- migration 0139 adds on the core path. Idempotent so both install paths
-- converge to the identical schema.
ALTER TABLE report_templates ADD COLUMN IF NOT EXISTS folder_id UUID;
CREATE INDEX IF NOT EXISTS ix_report_templates_folder ON report_templates(folder_id);