Files
archie/internal/infrastructure/postgres/migrations/0053_workflow_identity_root.sql
T

13 lines
414 B
SQL

-- 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;