-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- SIU-GUARANI 3 - Sistema de Gestión Académica -- Versión 3.0.0 -- Tabla: sga_tesis -- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- DROP TABLE IF EXISTS sga_tesis; CREATE TABLE sga_tesis ( tesis INTEGER NOT NULL DEFAULT nextval('sga_tesis_seq'::text) , titulo Varchar(255) NOT NULL, circuito Integer NOT NULL, expediente Varchar(20), fecha_alta Date NOT NULL DEFAULT CURRENT_DATE, actividad Integer, fecha_aprobacion Date, fecha_vencimiento Date, fecha_defensa Date, resolucion_tesis Integer, resolucion_tutores Integer, resolucion_evaluadores Integer, prorrogada Char(1) NOT NULL DEFAULT 'N', estado_actual Integer, fecha_ult_cambio Timestamp with time zone, descripcion Text ); -- ALTER TABLE sga_tesis DROP CONSTRAINT pk_sga_tesis; ALTER TABLE sga_tesis ADD CONSTRAINT pk_sga_tesis PRIMARY KEY (tesis); Revoke all ON sga_tesis FROM public; -- ++++++++++++++++++++++++++ Fin tabla sga_tesis +++++++++++++++++++++++++++++