fix invalid discount database migration
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user