feat(): Sync order translations (#14267)
* feat(): Sync order translations * feat(): Sync order translations * tests * Create tender-melons-develop.md * fix tests * cleanup * cleanup
This commit is contained in:
committed by
GitHub
parent
fe314ab5bc
commit
f13c23a4b7
@@ -304,6 +304,15 @@
|
||||
"nullable": false,
|
||||
"mappedType": "text"
|
||||
},
|
||||
"locale": {
|
||||
"name": "locale",
|
||||
"type": "text",
|
||||
"unsigned": false,
|
||||
"autoincrement": false,
|
||||
"primary": false,
|
||||
"nullable": true,
|
||||
"mappedType": "text"
|
||||
},
|
||||
"no_notification": {
|
||||
"name": "no_notification",
|
||||
"type": "boolean",
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
import { Migration } from '@mikro-orm/migrations';
|
||||
|
||||
export class Migration20251210112909 extends Migration {
|
||||
|
||||
override async up(): Promise<void> {
|
||||
this.addSql(`alter table if exists "order" add column if not exists "locale" text null;`);
|
||||
}
|
||||
|
||||
override async down(): Promise<void> {
|
||||
this.addSql(`alter table if exists "order" drop column if exists "locale";`);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -20,6 +20,7 @@ const _Order = model
|
||||
is_draft_order: model.boolean().default(false),
|
||||
email: model.text().searchable().nullable(),
|
||||
currency_code: model.text(),
|
||||
locale: model.text().nullable(),
|
||||
no_notification: model.boolean().nullable(),
|
||||
metadata: model.json().nullable(),
|
||||
canceled_at: model.dateTime().nullable(),
|
||||
|
||||
Reference in New Issue
Block a user