Actualización de datos y diseño BBDD

This commit is contained in:
Roberto Orden Erena
2019-12-22 07:22:56 +01:00
parent bc1e05ab36
commit 5a04f0bd4f
2 changed files with 12 additions and 4 deletions

View File

@@ -70,13 +70,13 @@ if exists (SELECT 1 FROM pg_sequences WHERE schemaname='myhealth' and sequencena
drop sequence myhealth.codigoidentificacionpaciente;
end if;
CREATE SEQUENCE myhealth.ProfesionalNumber
CREATE SEQUENCE myhealth.profesionalnumber
INCREMENT 1
START 1000
MINVALUE 1000
CACHE 1;
CREATE SEQUENCE myhealth.CodigoIdentificacionPaciente
CREATE SEQUENCE myhealth.codigoidentificacionpaciente
INCREMENT 1
START 1000
MINVALUE 1000
@@ -246,8 +246,8 @@ ALTER TABLE myhealth.question
CREATE TABLE myhealth.medicaltest
(
id INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY ( INCREMENT 1 START 1 MINVALUE 1 MAXVALUE 2147483647 CACHE 1 ),
date date,
"time" abstime,
date DATE,
"time" TIME,
observations TEXT COLLATE pg_catalog."default",
highresimage bytea,
type INTEGER,