-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- SIU-GUARANI 3 - Sistema de Gestión Académica -- Versión 3.0.0 -- Tabla: sga_tesis -- FK: fk_sga_tesis_mce_estados -- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- DROP INDEX ifk_sga_tesis_mce_estados; CREATE INDEX ifk_sga_tesis_mce_estados ON sga_tesis (estado_actual); -- ALTER TABLE sga_tesis DROP CONSTRAINT fk_sga_tesis_mce_estados; ALTER TABLE sga_tesis ADD CONSTRAINT fk_sga_tesis_mce_estados FOREIGN KEY (estado_actual) REFERENCES mce_estados (estado) on update restrict on delete restrict;