-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- SIU-GUARANI 3 - Sistema de Gestión Académica -- Versión 3.0.0 -- Tabla: sga_certificados -- FK: fk_sga_certificados_sga_documentos -- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- DROP INDEX ifk_sga_certificados_sga_documentos; CREATE INDEX ifk_sga_certificados_sga_documentos ON sga_certificados (nro_resolucion); -- ALTER TABLE sga_certificados DROP CONSTRAINT fk_sga_certificados_sga_documentos; ALTER TABLE sga_certificados ADD CONSTRAINT fk_sga_certificados_sga_documentos FOREIGN KEY (nro_resolucion) REFERENCES sga_documentos (documento) on update restrict on delete restrict;