14 lines
396 B
TypeScript
14 lines
396 B
TypeScript
import { Migration } from '@mikro-orm/migrations';
|
|
|
|
export class Migration20260701083547_addPrintInvoiceToOrders extends Migration {
|
|
|
|
override async up(): Promise<void> {
|
|
this.addSql(`alter table "orders" add column "print_invoice" boolean not null default false;`);
|
|
}
|
|
|
|
override async down(): Promise<void> {
|
|
this.addSql(`alter table "orders" drop column "print_invoice";`);
|
|
}
|
|
|
|
}
|