print invoice field in order
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-07-01 12:26:55 +03:30
parent 2a633a28b4
commit bd084e2e63
7 changed files with 45 additions and 2 deletions
+10
View File
@@ -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";`);
}
}