From 55c1989403433381ac6ae8ad3c7c4f8729deb866 Mon Sep 17 00:00:00 2001 From: siddharth Date: Tue, 21 May 2024 02:43:05 +0530 Subject: [PATCH] chore(voucher): adding migration for platformFee --- .../db/migrations/20240520210910_adding_platformFee.mjs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 apps/voucher/services/db/migrations/20240520210910_adding_platformFee.mjs diff --git a/apps/voucher/services/db/migrations/20240520210910_adding_platformFee.mjs b/apps/voucher/services/db/migrations/20240520210910_adding_platformFee.mjs new file mode 100644 index 00000000000..c0b66fbf169 --- /dev/null +++ b/apps/voucher/services/db/migrations/20240520210910_adding_platformFee.mjs @@ -0,0 +1,7 @@ +export const up = async (knex) => { + await knex.schema.table("WithdrawLinks", (table) => { + table.decimal("platformFee").notNullable().unsigned().defaultTo(0) + }) +} + +export const down = async (knex) => {}