mirror of
https://github.com/hcengineering/platform.git
synced 2025-03-11 15:45:43 +00: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;
|