From 3ff5a8a84b9abf389fb5688a562331b8cdb05df7 Mon Sep 17 00:00:00 2001 From: Tetardtek Date: Tue, 17 Mar 2026 07:38:18 +0100 Subject: [PATCH] =?UTF-8?q?fix(mysql):=20jsonb=20=E2=86=92=20json=20?= =?UTF-8?q?=E2=80=94=20type=20non=20support=C3=A9=20par=20MySQL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/combat/combat-log.entity.ts | 2 +- src/craft/recipe.entity.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/combat/combat-log.entity.ts b/src/combat/combat-log.entity.ts index 9b11780..1e83be9 100644 --- a/src/combat/combat-log.entity.ts +++ b/src/combat/combat-log.entity.ts @@ -35,7 +35,7 @@ export class CombatLog { totalRounds: number; // Stocker les rounds en JSON — lecture replay - @Column({ name: 'rounds_data', type: 'jsonb' }) + @Column({ name: 'rounds_data', type: 'json' }) roundsData: object; @Column({ name: 'xp_earned', default: 0 }) diff --git a/src/craft/recipe.entity.ts b/src/craft/recipe.entity.ts index f24a420..cb525d0 100644 --- a/src/craft/recipe.entity.ts +++ b/src/craft/recipe.entity.ts @@ -27,6 +27,6 @@ export class Recipe { @Column({ name: 'endurance_cost' }) enduranceCost: number; - @Column({ type: 'jsonb' }) + @Column({ type: 'json' }) ingredients: RecipeIngredient[]; }