Files
huly-platform/foundations/server/packages/postgres/migrations/uncSchema.sql
T
Denis Bykhov 2b0d510202 Add 'foundations/server/' from commit 'afe85b988c56330dd14d44fb766e2c41871b64a7'
git-subtree-dir: foundations/server
git-subtree-mainline: fd0b7130eb
git-subtree-split: afe85b988c
2025-11-26 22:56:52 +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;