-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- SIU-GUARANI 3 - Sistema de Gestión Académica -- Versión 3.0.0 -- Tabla: sga_alumnos -- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- DROP TABLE IF EXISTS sga_alumnos; CREATE TABLE sga_alumnos ( alumno INTEGER NOT NULL DEFAULT nextval('sga_alumnos_seq'::text) , legajo Varchar(20), persona Integer NOT NULL, propuesta Integer NOT NULL, plan_version Integer NOT NULL, ubicacion Integer NOT NULL, modalidad Char(1) NOT NULL, division Smallint, cnt_readmisiones Smallint DEFAULT 0, regular Char(1) NOT NULL DEFAULT 'S', calidad Char(1) NOT NULL ); Alter Table "sga_alumnos" add UNIQUE ("alumno"); -- ALTER TABLE sga_alumnos DROP CONSTRAINT pk_sga_alumnos; ALTER TABLE sga_alumnos ADD CONSTRAINT pk_sga_alumnos PRIMARY KEY (alumno); Revoke all ON sga_alumnos FROM public; -- ++++++++++++++++++++++++++ Fin tabla sga_alumnos +++++++++++++++++++++++++++++