14 lines
392 B
TypeScript
14 lines
392 B
TypeScript
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";`);
|
|
}
|
|
|
|
}
|