mirror of
https://github.com/hcengineering/platform.git
synced 2025-02-04 18:06:41 +00:00
084eca268e
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
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; |