fix(postgres): run stored workflows that name the root identity as the seeded agent
This commit is contained in:
1 parent
10f7d462af
commit
cf8071af1a
1 file changed
+12
@@ -0,0 +1,12 @@
|
||||
-- Workflow definitions stored before the shipped ones named the seeded agent
|
||||
-- still say "identity: root", which no identity carries. They run as the agent.
|
||||
|
||||
-- +goose Up
|
||||
UPDATE resources
|
||||
SET value = convert_to(
|
||||
regexp_replace(convert_from(value, 'UTF8'), 'identity: root(?=\\n|")', 'identity: 6f129e29-0e26-5246-99bd-74cb4496203b', 'g'),
|
||||
'UTF8')
|
||||
WHERE kind = 'workflow-definitions';
|
||||
|
||||
-- +goose Down
|
||||
SELECT 1;
|
||||
Reference in new issue
Block a user