mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-30 06:53:30 +03:00
11 lines
225 B
MySQL
11 lines
225 B
MySQL
|
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;
|