Skip to content

Commit

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

declare(strict_types=1);


use Phinx\Migration\AbstractMigration;

class PlaneteBilletEncoding extends AbstractMigration
{
public function change(): void
{
$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 a5360df

Please sign in to comment.