Skip to content

Commit

Permalink
Mise à jour de l'encoding de la table afup_planete_billet
Browse files Browse the repository at this point in the history
Cela permet le support des emojis
  • Loading branch information
Mopolo committed Feb 10, 2025
1 parent 363c834 commit b1f562c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions db/migrations/20250210180403_planete_billet_encoding.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php


use Phinx\Migration\AbstractMigration;

class PlaneteBilletEncoding extends AbstractMigration
{
public function change()
{
$this->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;");
}
}

0 comments on commit b1f562c

Please sign in to comment.