mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-25 20:42:56 +03:00
430be8c3ba
Some checks failed
CI / build (push) Has been cancelled
CI / uitest (push) Has been cancelled
CI / uitest-pg (push) Has been cancelled
CI / uitest-qms (push) Has been cancelled
CI / svelte-check (push) Has been cancelled
CI / formatting (push) Has been cancelled
CI / test (push) Has been cancelled
CI / docker-build (push) Has been cancelled
CI / dist-build (push) Has been cancelled
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
18 lines
314 B
SQL
18 lines
314 B
SQL
ALTER TABLE tx
|
|
ADD "objectSpace" text,
|
|
ADD "objectId" text;
|
|
|
|
UPDATE tx
|
|
SET "objectId" = (data->>'objectId');
|
|
|
|
UPDATE tx
|
|
SET "objectSpace" = (data->>'objectSpace');
|
|
|
|
ALTER TABLE tx
|
|
ALTER COLUMN "objectSpace" SET NOT NULL;
|
|
|
|
ALTER TABLE tx
|
|
ADD "attachedTo" text;
|
|
|
|
UPDATE tx
|
|
SET "attachedTo" = (data->>'attachedTo'); |