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:
Adrien de Peretti
2025-12-11 15:40:11 +01:00
committed by GitHub
parent fe314ab5bc
commit f13c23a4b7
30 changed files with 2271 additions and 74 deletions

View File

@@ -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",

View File

@@ -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";`);
}
}

View File

@@ -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(),