diff --git a/migration/19.12/1912.sql b/migration/19.12/1912.sql index 69c9484dea4c77f264e67f84a1c3699b2d4b6bd4..6846a74b0c471a8495177df5e42782179e4d7a00 100644 --- a/migration/19.12/1912.sql +++ b/migration/19.12/1912.sql @@ -71,6 +71,17 @@ DELETE FROM actions WHERE action_page = 'view' OR component = 'viewDoc'; ALTER TABLE groupbasket DROP COLUMN IF EXISTS list_event_data; ALTER TABLE groupbasket ADD COLUMN list_event_data jsonb; +update groupbasket set list_event_data = '"info"', list_event = 'processDocument' +where group_id in ( + select group_id + from actions_groupbaskets + where id_action in ( + select id + from actions + where action_page = 'validate_mail' + ) and groupbasket.basket_id = actions_groupbaskets.basket_id +); + /* FOLDERS */ DO $$ BEGIN