ALTER TABLE comprobante_importe
ADD COLUMN cuenta_contable_id INT NULL AFTER comprobante_campo_id,
ADD CONSTRAINT fk_comprobante_importe_cuenta_contable
    FOREIGN KEY (cuenta_contable_id) REFERENCES plan_contable_detalle(id);

CREATE INDEX idx_comprobante_importe_cuenta_contable
    ON comprobante_importe(cuenta_contable_id);
