fix invalid discount database migration

This commit is contained in:
ItsMalma
2025-12-03 18:51:31 +07:00
parent 9b58977f26
commit bbfc022395

View File

@@ -4,7 +4,7 @@ export class Migration20251203114705 extends Migration {
override async up(): Promise<void> {
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<void> {
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");