Changes between Version 39 and Version 40 of manual_regente_windows_postgres

Show
Ignore:
Timestamp:
08/30/13 16:30:00 (11 years ago)
Author:
german
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • manual_regente_windows_postgres

    v39 v40  
    116116ALTER TABLE remitos_detalles DROP CONSTRAINT chk_existencia_especificar_lote; 
    117117ALTER TABLE remitos_detalles DROP CONSTRAINT chk_existencia_especificar_lote_unitario; 
     118ALTER TABLE remitos_detalles DROP CONSTRAINT chk_lote_articulo_correcto; 
    118119ALTER TABLE valores DROP CONSTRAINT chk_numero_en_chequera; 
     120 
    119121}}} 
    120122  * 4) Restaurar solo los datos 
     
    129131ALTER TABLE remitos_detalles ADD CONSTRAINT chk_existencia_especificar_lote CHECK (NOT (id_lote IS NULL AND existencia_con_lote(id_articulo))); 
    130132ALTER TABLE remitos_detalles ADD CONSTRAINT chk_existencia_especificar_lote_unitario CHECK (NOT (COALESCE(cant, 0::double precision) <> 1::double precision AND existencia_con_lote_unitario(id_articulo))); 
     133ALTER TABLE remitos_detalles ADD CONSTRAINT chk_lote_articulo_correcto CHECK (id_lote IS NULL OR lote_articulo_correcto(id_lote, id_articulo)); 
    131134delete from valores where not valor_cheque_en_chequera(id_cuenta, nro, id_tipo_pago) 
    132135ALTER TABLE valores ADD CONSTRAINT chk_numero_en_chequera CHECK (valor_cheque_en_chequera(id_cuenta, nro, id_tipo_pago));