-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- SIU-GUARANI 3 - Sistema de Gestión Académica -- Versión 3.0.0 -- Tabla: sga_alumnos_hist_planes -- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- DROP TABLE IF EXISTS sga_alumnos_hist_planes; CREATE TABLE sga_alumnos_hist_planes ( cambio_plan INTEGER NOT NULL DEFAULT nextval('sga_alumnos_hist_planes_seq'::text) , alumno Integer NOT NULL, plan_version Integer NOT NULL, motivo_plan Integer NOT NULL, fecha Timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP, tipo Smallint NOT NULL DEFAULT 1, documento Integer, observaciones Varchar(200) ); -- ALTER TABLE sga_alumnos_hist_planes DROP CONSTRAINT pk_sga_alumnos_hist_planes; ALTER TABLE sga_alumnos_hist_planes ADD CONSTRAINT pk_sga_alumnos_hist_planes PRIMARY KEY (cambio_plan); Revoke all ON sga_alumnos_hist_planes FROM public; -- ++++++++++++++++++++++++++ Fin tabla sga_alumnos_hist_planes +++++++++++++++++++++++++++++