Changes between Version 39 and Version 40 of manual_regente_windows_postgres
- Timestamp:
- 08/30/13 16:30:00 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
manual_regente_windows_postgres
v39 v40 116 116 ALTER TABLE remitos_detalles DROP CONSTRAINT chk_existencia_especificar_lote; 117 117 ALTER TABLE remitos_detalles DROP CONSTRAINT chk_existencia_especificar_lote_unitario; 118 ALTER TABLE remitos_detalles DROP CONSTRAINT chk_lote_articulo_correcto; 118 119 ALTER TABLE valores DROP CONSTRAINT chk_numero_en_chequera; 120 119 121 }}} 120 122 * 4) Restaurar solo los datos … … 129 131 ALTER TABLE remitos_detalles ADD CONSTRAINT chk_existencia_especificar_lote CHECK (NOT (id_lote IS NULL AND existencia_con_lote(id_articulo))); 130 132 ALTER 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))); 133 ALTER TABLE remitos_detalles ADD CONSTRAINT chk_lote_articulo_correcto CHECK (id_lote IS NULL OR lote_articulo_correcto(id_lote, id_articulo)); 131 134 delete from valores where not valor_cheque_en_chequera(id_cuenta, nro, id_tipo_pago) 132 135 ALTER TABLE valores ADD CONSTRAINT chk_numero_en_chequera CHECK (valor_cheque_en_chequera(id_cuenta, nro, id_tipo_pago));