Files
ppanel-web/migrations/mysql/02125_subscribe_stock.sql
T
Ember Moth 2744c70c5c Initial
2026-07-05 20:27:58 +08:00

12 lines
317 B
SQL

-- migrate:up
-- Update the `subscribe` table to set `inventory` to -1 where it is currently 0
UPDATE `subscribe`
SET `inventory` = -1
WHERE `inventory` = 0;
-- migrate:down
-- This migration script reverts the inventory values in the 'subscribe' table
UPDATE `subscribe`
SET `inventory` = 0
WHERE `inventory` = -1;