stacker.news/prisma/migrations/20241018160708_max_fee_total/migration.sql

9 lines
337 B
MySQL
Raw Normal View History

2024-10-19 14:21:50 +00:00
-- AlterTable
ALTER TABLE "users" ADD COLUMN "autoWithdrawMaxFeeTotal" INTEGER;
-- set max total fee for users with autowithdrawals enabled to not interfere with them.
-- we set it to 0 instead of 1 because that preserves old behavior.
UPDATE "users"
SET "autoWithdrawMaxFeeTotal" = 0
WHERE "autoWithdrawMaxFeePercent" IS NOT NULL;