update person entity
This commit is contained in:
No files matched your search
@@ -0,0 +1,6 @@
|
||||
-- Modify "Person" table
|
||||
ALTER TABLE "public"."Person" DROP CONSTRAINT "uni_Person_DrivingLicenseNumber", DROP CONSTRAINT "uni_Person_PassportNumber", ALTER COLUMN "ResidentIdentityNumber" TYPE character varying(16), ALTER COLUMN "Nationality" TYPE character varying(50);
|
||||
-- Create index "idx_driver_license" to table: "Person"
|
||||
CREATE UNIQUE INDEX "idx_driver_license" ON "public"."Person" ("DrivingLicenseNumber") WHERE ("DeletedAt" IS NULL);
|
||||
-- Create index "idx_passport" to table: "Person"
|
||||
CREATE UNIQUE INDEX "idx_passport" ON "public"."Person" ("PassportNumber") WHERE ("DeletedAt" IS NULL);
|
||||
Reference in New Issue
Block a user