platform/server/postgres/migrations/uncSchema.sql
Denis Bykhov 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
Extract domain fields (#7075)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2024-11-01 21:03:43 +05:00

11 lines
225 B
SQL

ALTER TABLE notification_user
ADD "user" text;
ALTER TABLE notification_user
DROP COLUMN "attachedTo";
UPDATE notification_user
SET "user" = (data->>'user');
ALTER TABLE notification_user
ALTER COLUMN "user" SET NOT NULL;