mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-21 16:09:12 +03:00
Change tx schema (#7179)
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
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>
This commit is contained in:
parent
123ae25b68
commit
430be8c3ba
@ -2,9 +2,6 @@ ALTER TABLE tx
|
||||
ADD "objectSpace" text,
|
||||
ADD "objectId" text;
|
||||
|
||||
ALTER TABLE tx
|
||||
DROP COLUMN "attachedTo";
|
||||
|
||||
UPDATE tx
|
||||
SET "objectId" = (data->>'objectId');
|
||||
|
||||
@ -12,4 +9,10 @@ UPDATE tx
|
||||
SET "objectSpace" = (data->>'objectSpace');
|
||||
|
||||
ALTER TABLE tx
|
||||
ALTER COLUMN "objectSpace" SET NOT NULL;
|
||||
ALTER COLUMN "objectSpace" SET NOT NULL;
|
||||
|
||||
ALTER TABLE tx
|
||||
ADD "attachedTo" text;
|
||||
|
||||
UPDATE tx
|
||||
SET "attachedTo" = (data->>'attachedTo');
|
@ -86,7 +86,7 @@ const spaceSchema: Schema = {
|
||||
}
|
||||
|
||||
const txSchema: Schema = {
|
||||
...baseSchema,
|
||||
...defaultSchema,
|
||||
objectSpace: {
|
||||
type: 'text',
|
||||
notNull: true,
|
||||
|
Loading…
Reference in New Issue
Block a user