Files
tenant-registry/migrations/0002_ladder_statuses.up.sql
sharang 2ea49be29d
ci / shared (push) Successful in 12s
ci / test (push) Successful in 21m58s
ci / image (push) Successful in 56s
feat(m-mig-5): products table, entitlement check, tenant ladder, per-client authz (#23)
2026-09-12 07:38:47 +00:00

9 lines
500 B
SQL

-- M-MIG-5 — tenant status ladder (ERP/02): active = Betriebsbereit,
-- warning = Warnung, restricted = Eingeschränkt, halted = Angehalten.
-- 'frozen' is kept for existing rows and treated like 'restricted'.
-- (ADD VALUE is its own migration: new enum values cannot be used in the
-- transaction that adds them.)
ALTER TYPE tenant_status ADD VALUE IF NOT EXISTS 'warning';
ALTER TYPE tenant_status ADD VALUE IF NOT EXISTS 'restricted';
ALTER TYPE tenant_status ADD VALUE IF NOT EXISTS 'halted';