From a5360df3bb0129c6c7b5235c968c07f8963ad89e Mon Sep 17 00:00:00 2001 From: Nathan Boiron Date: Tue, 11 Feb 2025 13:30:00 +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`=20(#1623)?= 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 | 17 +++++++++++++++++ 1 file changed, 17 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..32db95522 --- /dev/null +++ b/db/migrations/20250210180403_planete_billet_encoding.php @@ -0,0 +1,17 @@ +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;"); + } +}