-- Rollback migración 02 · CHECK constraints
USE tinsa_db;

ALTER TABLE movimiento_stock
  DROP CONSTRAINT chk_mov_cantidad_pos,
  DROP CONSTRAINT chk_mov_ajuste_dir,
  DROP CONSTRAINT chk_mov_traslado_dir;

ALTER TABLE existencia_bodega
  DROP CONSTRAINT chk_exist_stock_no_neg,
  DROP CONSTRAINT chk_exist_min_no_neg;

ALTER TABLE producto
  DROP CONSTRAINT chk_producto_precios_no_neg;

ALTER TABLE cotizacion_compra_proveedor_item
  DROP CONSTRAINT chk_ccpi_pcts;
