-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- SIU-GUARANI 3 - Sistema de Gestión Académica -- Versión 3.0.0 -- Tabla: sga_elementos -- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- DROP TABLE IF EXISTS sga_elementos; CREATE TABLE sga_elementos ( elemento INTEGER NOT NULL DEFAULT nextval('sga_elementos_seq'::text) , nombre Varchar(255) NOT NULL, nombre_abreviado Varchar(50) NOT NULL, codigo Varchar(10), entidad_subtipo Integer NOT NULL, entidad Integer, compartible Char(1) NOT NULL DEFAULT 'S', estado Char(1) NOT NULL ); -- ALTER TABLE sga_elementos DROP CONSTRAINT pk_sga_elementos; ALTER TABLE sga_elementos ADD CONSTRAINT pk_sga_elementos PRIMARY KEY (elemento); Revoke all ON sga_elementos FROM public; -- ++++++++++++++++++++++++++ Fin tabla sga_elementos +++++++++++++++++++++++++++++