add packing fee

This commit is contained in:
2026-07-01 09:54:15 +03:30
parent 77acab935a
commit 2a633a28b4
5 changed files with 38 additions and 1 deletions
@@ -0,0 +1,13 @@
import { Migration } from '@mikro-orm/migrations';
export class Migration20260701062227_addPackingFeeToOrders extends Migration {
override async up(): Promise<void> {
this.addSql(`alter table "orders" add column "packing_fee" numeric(10,0) not null default 0;`);
}
override async down(): Promise<void> {
this.addSql(`alter table "orders" drop column "packing_fee";`);
}
}