mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-25 04:25:13 +03:00
084eca268e
Some checks are pending
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions
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; |