Fix migration

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-03-05 11:15:43 +04:00
parent 323cd602a1
commit 46d8450ead
4 changed files with 17 additions and 1 deletions

View File

@@ -62,7 +62,15 @@ ALTER TABLE
ALTER COLUMN
identity_id
SET
NOT NULL;
NOT NULL,
ALTER COLUMN
email DROP NOT NULL,
ALTER COLUMN
name DROP NOT NULL,
ALTER COLUMN
state DROP NOT NULL,
ALTER COLUMN
has_accepted_non_disclosure_agreement DROP NOT NULL;
CREATE UNIQUE INDEX idx_trust_center_accesses_identity_id_organization_id ON trust_center_accesses(identity_id, organization_id);