fix(postgres): allow the agent org upgrade phase

This commit is contained in:
sam committed 2026-10-17 21:55:42 +11:00
1 parent f0eee80ab7
commit 8aa59bdb51
1 file changed
+14
@@ -0,0 +1,14 @@
-- The seeded agent identity is created by its own resumable upgrade phase.
-- +goose Up
ALTER TABLE org_upgrades DROP CONSTRAINT org_upgrades_phase_check;
ALTER TABLE org_upgrades ADD CONSTRAINT org_upgrades_phase_check
CHECK (phase IN ('state_store', 'edastore', 'operator', 'agent'));
-- +goose Down
DELETE FROM org_upgrades WHERE phase = 'agent';
ALTER TABLE org_upgrades DROP CONSTRAINT org_upgrades_phase_check;
ALTER TABLE org_upgrades ADD CONSTRAINT org_upgrades_phase_check
CHECK (phase IN ('state_store', 'edastore', 'operator'));