mirror of
https://github.com/hcengineering/platform.git
synced 2025-03-10 15:07:41 +00:00
11 lines
225 B
SQL
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; |