From b1f562c2f70b396b9d1eefbc49caf155c8a4521c Mon Sep 17 00:00:00 2001 From: Nathan Boiron Date: Mon, 10 Feb 2025 19:06:02 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20l'encoding=20de=20l?= =?UTF-8?q?a=20table=20`afup=5Fplanete=5Fbillet`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cela permet le support des emojis --- .../20250210180403_planete_billet_encoding.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 db/migrations/20250210180403_planete_billet_encoding.php diff --git a/db/migrations/20250210180403_planete_billet_encoding.php b/db/migrations/20250210180403_planete_billet_encoding.php new file mode 100644 index 000000000..70307684d --- /dev/null +++ b/db/migrations/20250210180403_planete_billet_encoding.php @@ -0,0 +1,15 @@ +execute("ALTER TABLE afup_planete_billet CHANGE titre titre mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;"); + $this->execute("ALTER TABLE afup_planete_billet CHANGE auteur auteur mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;"); + $this->execute("ALTER TABLE afup_planete_billet CHANGE resume resume mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;"); + $this->execute("ALTER TABLE afup_planete_billet CHANGE contenu contenu mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;"); + } +}