From 43b27934948ff2ad86c222cc3bc25f4f5b3554cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garcia=20Nu=C3=B1ez?= Date: Fri, 27 Dec 2019 11:58:56 +0100 Subject: [PATCH] =?UTF-8?q?Corregido=20error.=20A=C3=B1adidos=20permisos?= =?UTF-8?q?=20sobre=20las=20secuencias.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2.database/01.CreateTables.sql | 40 +++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/2.database/01.CreateTables.sql b/2.database/01.CreateTables.sql index 2bcc6f9..7d66c74 100644 --- a/2.database/01.CreateTables.sql +++ b/2.database/01.CreateTables.sql @@ -209,26 +209,30 @@ CREATE TABLE myhealth.medicaltest TABLESPACE pg_default; -- Permisos -ALTER TABLE myhealth.administrator OWNER to "USER"; -ALTER TABLE myhealth.primaryhealthcarecenter OWNER to "USER"; -ALTER TABLE myhealth.familydoctor OWNER to "USER"; -ALTER TABLE myhealth.medicalspecialty OWNER to "USER"; -ALTER TABLE myhealth.patient OWNER to "USER"; -ALTER TABLE myhealth.specialistdoctor OWNER to "USER"; -ALTER TABLE myhealth.visit OWNER to "USER"; -ALTER TABLE myhealth.question OWNER to "USER"; -ALTER TABLE myhealth.medicaltest OWNER to "USER"; +ALTER TABLE myhealth.administrator OWNER to "USER"; +ALTER TABLE myhealth.primaryhealthcarecenter OWNER to "USER"; +ALTER TABLE myhealth.familydoctor OWNER to "USER"; +ALTER TABLE myhealth.medicalspecialty OWNER to "USER"; +ALTER TABLE myhealth.patient OWNER to "USER"; +ALTER TABLE myhealth.specialistdoctor OWNER to "USER"; +ALTER TABLE myhealth.visit OWNER to "USER"; +ALTER TABLE myhealth.question OWNER to "USER"; +ALTER TABLE myhealth.medicaltest OWNER to "USER"; +ALTER SEQUENCE myhealth.profesionalnumber OWNER to "USER"; +ALTER SEQUENCE myhealth.codigoidentificacionpaciente OWNER to "USER"; -- Permisos para la máquina de PRE (usuario: usrmyhealth) -GRANT ALL ON myhealth.administrator to usrmyhealth; -GRANT ALL ON myhealth.primaryhealthcarecenter to usrmyhealth; -GRANT ALL ON myhealth.familydoctor to usrmyhealth; -GRANT ALL ON myhealth.medicalspecialty to usrmyhealth; -GRANT ALL ON myhealth.patient to usrmyhealth; -GRANT ALL ON myhealth.specialistdoctor to usrmyhealth; -GRANT ALL ON myhealth.visit to usrmyhealth; -GRANT ALL ON myhealth.question to usrmyhealth; -GRANT ALL ON myhealth.medicaltest to usrmyhealth; +GRANT ALL ON myhealth.administrator to usrmyhealth; +GRANT ALL ON myhealth.primaryhealthcarecenter to usrmyhealth; +GRANT ALL ON myhealth.familydoctor to usrmyhealth; +GRANT ALL ON myhealth.medicalspecialty to usrmyhealth; +GRANT ALL ON myhealth.patient to usrmyhealth; +GRANT ALL ON myhealth.specialistdoctor to usrmyhealth; +GRANT ALL ON myhealth.visit to usrmyhealth; +GRANT ALL ON myhealth.question to usrmyhealth; +GRANT ALL ON myhealth.medicaltest to usrmyhealth; +GRANT ALL ON myhealth.profesionalnumber to usrmyhealth; +GRANT ALL ON myhealth.codigoidentificacionpaciente to usrmyhealth; END; $$ \ No newline at end of file