Merge branch 'unique_index_doctors' into 'master'

agregar indices unicos para family doctor y specialist

See merge request pds19-grupo2/myhealth!1
This commit is contained in:
Gabriel Paradiso Silva
2019-12-13 17:33:22 +01:00

View File

@@ -64,6 +64,9 @@ CREATE TABLE myhealth.familydoctor
) )
TABLESPACE pg_default; TABLESPACE pg_default;
CREATE UNIQUE INDEX family_doctor_professionaln_index
ON myhealth.familydoctor (professionalnumber);
ALTER TABLE myhealth.familydoctor ALTER TABLE myhealth.familydoctor
OWNER to "USER"; OWNER to "USER";
@@ -193,6 +196,9 @@ CREATE TABLE myhealth.specialistdoctor
) )
TABLESPACE pg_default; TABLESPACE pg_default;
CREATE UNIQUE INDEX specialistdoctor_professionaln_index
ON myhealth.specialistdoctor (professionalnumber);
ALTER TABLE myhealth.specialistdoctor ALTER TABLE myhealth.specialistdoctor
OWNER to "USER"; OWNER to "USER";