This commit is contained in:
@@ -4326,6 +4326,16 @@
|
||||
"nullable": true,
|
||||
"mappedType": "text"
|
||||
},
|
||||
"print_invoice": {
|
||||
"name": "print_invoice",
|
||||
"type": "boolean",
|
||||
"unsigned": false,
|
||||
"autoincrement": false,
|
||||
"primary": false,
|
||||
"nullable": false,
|
||||
"default": "false",
|
||||
"mappedType": "boolean"
|
||||
},
|
||||
"table_number": {
|
||||
"name": "table_number",
|
||||
"type": "varchar(255)",
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
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";`);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user