feat: migración PZ La Casita, fix motor N/A/RUEDA, cache-buster catálogo y variant_ids

This commit is contained in:
2026-06-22 22:33:59 +00:00
parent f5711ae22f
commit 14219e7117
9 changed files with 293 additions and 24 deletions

View File

@@ -51,6 +51,7 @@ MIGRATIONS = {
"v4.2": "v4.2_meli_sync_queue.sql",
"v4.3": "v4.3_facturapi.sql",
"v4.4": "v4.4_workshop.sql",
"v4.5": "v4.5_customer_max_discount.sql",
}

View File

@@ -0,0 +1,5 @@
-- /home/Autopartes/pos/migrations/v4.5_customer_max_discount.sql
-- Tenant DB schema v4.5 — add per-customer maximum discount percentage.
ALTER TABLE customers
ADD COLUMN IF NOT EXISTS max_discount_pct NUMERIC(5,2) DEFAULT 0;