From 433003cf384ea7399af23e3da2859748fecc570f Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 5 Jun 2022 22:50:02 +0200 Subject: [PATCH] fix migration --- db/migrations/0196__rename_bulk_actions.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrations/0196__rename_bulk_actions.sql b/db/migrations/0196__rename_bulk_actions.sql index fd82ae344..ad4c5febe 100644 --- a/db/migrations/0196__rename_bulk_actions.sql +++ b/db/migrations/0196__rename_bulk_actions.sql @@ -1,2 +1,2 @@ -UPDATE attributes SET name = 'updateLabelValue' WHERE name = 'setLabelValue' AND type = 'label'; -UPDATE attributes SET name = 'updateRelationTarget' WHERE name = 'setRelationTarget' AND type = 'label'; +UPDATE attributes SET value = replace(value, 'setLabelValue', 'updateLabelValue') WHERE name = 'action' AND type = 'label'; +UPDATE attributes SET value = replace(value, 'setRelationTarget', 'updateRelationTarget') WHERE name = 'action' AND type = 'label';