first commit

This commit is contained in:
qwer-xyz
2026-06-20 14:22:31 +08:00
commit c2498911ab
793 changed files with 291660 additions and 0 deletions
@@ -0,0 +1,9 @@
-- Replace stock_limit/stock_used with sla_guarantee in package_plans table
-- This migration converts the inventory system to an SLA guarantee display
-- Step 1: Add the new sla_guarantee column
ALTER TABLE "package_plans" ADD COLUMN IF NOT EXISTS "sla_guarantee" DECIMAL(5,2);
-- Step 2: Drop the old stock columns (no data migration needed as we're changing the concept entirely)
ALTER TABLE "package_plans" DROP COLUMN IF EXISTS "stock_limit";
ALTER TABLE "package_plans" DROP COLUMN IF EXISTS "stock_used";