From bbfc0223950982728f04a8ae784619dfa1122d1e Mon Sep 17 00:00:00 2001 From: ItsMalma Date: Wed, 3 Dec 2025 18:51:31 +0700 Subject: [PATCH] fix invalid discount database migration --- src/database/migrations/Migration20251203114705.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/database/migrations/Migration20251203114705.ts b/src/database/migrations/Migration20251203114705.ts index 88676e7..2862657 100644 --- a/src/database/migrations/Migration20251203114705.ts +++ b/src/database/migrations/Migration20251203114705.ts @@ -4,7 +4,7 @@ export class Migration20251203114705 extends Migration { override async up(): Promise { const knex = this.getKnex(); - await knex.schema.alterTable("packages", (table) => { + await knex.schema.alterTable("package", (table) => { table.decimal("quad_discount", 10, 2).notNullable().defaultTo(0); table.decimal("triple_discount", 10, 2).notNullable().defaultTo(0); table.decimal("double_discount", 10, 2).notNullable().defaultTo(0); @@ -15,7 +15,7 @@ export class Migration20251203114705 extends Migration { override async down(): Promise { const knex = this.getKnex(); - await knex.schema.alterTable("packages", (table) => { + await knex.schema.alterTable("package", (table) => { table.dropColumn("quad_discount"); table.dropColumn("triple_discount"); table.dropColumn("double_discount");