fix(postgres): allow the agent org upgrade phase
This commit is contained in:
1 parent
27cb53005d
commit
18bde4dbb8
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'));
|
||||
Reference in new issue
Block a user