1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?php class WikiAncestorCollation extends Migration { public function description() { return 'fix collation for ancestor column in wiki'; } public function up() { $db = DBManager::get(); $db->exec('ALTER TABLE wiki CHANGE ancestor ancestor VARCHAR(255) COLLATE utf8mb4_bin DEFAULT NULL'); } }