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

9 lines
334 B
MySQL
Raw Normal View History

2024-10-18 16:15:53 +00:00
-- AlterTable
ALTER TABLE "users" ADD COLUMN "autoWithdrawMaxBaseFee" INTEGER;
-- set max_base_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 "autoWithdrawMaxBaseFee" = 0
WHERE "autoWithdrawMaxFeePercent" IS NOT NULL;