change index person

This commit is contained in:
vanilia
2025-11-19 13:35:19 +07:00
parent 03b7519636
commit 5740ea3b76
3 changed files with 7 additions and 2 deletions

No files matched your search

@@ -0,0 +1,4 @@
-- Modify "Person" table
ALTER TABLE "public"."Person" DROP CONSTRAINT "uni_Person_ResidentIdentityNumber", ALTER COLUMN "ResidentIdentityNumber" TYPE text;
-- Create index "idx_resident_identity" to table: "Person"
CREATE UNIQUE INDEX "idx_resident_identity" ON "public"."Person" ("ResidentIdentityNumber") WHERE ("DeletedAt" IS NULL);