mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-21 11:52:23 +02:00
git-subtree-dir: foundations/server git-subtree-mainline:fd0b7130ebgit-subtree-split:afe85b988c
25 lines
537 B
SQL
25 lines
537 B
SQL
ALTER TABLE notification_dnc
|
|
ADD "objectId" text,
|
|
ADD "objectClass" text,
|
|
ADD "user" text;
|
|
|
|
ALTER TABLE notification_dnc
|
|
DROP COLUMN "attachedTo";
|
|
|
|
UPDATE notification_dnc
|
|
SET "objectId" = (data->>'objectId');
|
|
|
|
UPDATE notification_dnc
|
|
SET "objectClass" = (data->>'objectClass');
|
|
|
|
UPDATE notification_dnc
|
|
SET "user" = (data->>'user');
|
|
|
|
ALTER TABLE notification_dnc
|
|
ALTER COLUMN "objectId" SET NOT NULL;
|
|
|
|
ALTER TABLE notification_dnc
|
|
ALTER COLUMN "objectClass" SET NOT NULL;
|
|
|
|
ALTER TABLE notification_dnc
|
|
ALTER COLUMN "user" SET NOT NULL; |