fix: update seed files to use mgmt schema after migration

The search_path was changed from kanzlai to mgmt but seed files
still referenced the old schema. Also added missing is_spawn and
spawn_label columns to mgmt.deadline_rules via direct DB migration.

Root cause of timeline 404 / calculate+determine 400: the ruleColumns
query selected is_spawn and spawn_label which didn't exist in the
mgmt.deadline_rules table, causing all deadline rule queries to fail.
This commit is contained in:
m
2026-03-30 14:30:40 +02:00
parent 5e401d2eac
commit cf3711b2e4
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
-- Creates 1 test tenant, 5 cases with deadlines and appointments -- Creates 1 test tenant, 5 cases with deadlines and appointments
-- Run with: psql $DATABASE_URL -f demo_data.sql -- Run with: psql $DATABASE_URL -f demo_data.sql
SET search_path TO kanzlai, public; SET search_path TO mgmt, public;
-- Demo tenant -- Demo tenant
INSERT INTO tenants (id, name, slug, settings) VALUES INSERT INTO tenants (id, name, slug, settings) VALUES

View File

@@ -1,6 +1,6 @@
-- UPC Proceeding Timeline: Full event tree with conditional deadlines -- UPC Proceeding Timeline: Full event tree with conditional deadlines
-- Ported from youpc.org migrations 039 + 040 -- Ported from youpc.org migrations 039 + 040
-- Run against kanzlai schema in flexsiebels Supabase instance -- Run against mgmt schema in youpc.org Supabase instance
-- ======================================== -- ========================================
-- 1. Add is_spawn + spawn_label columns -- 1. Add is_spawn + spawn_label columns