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

9 lines
334 B
SQL

-- 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;