aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/5.1.11_wiki_ancestor_collation.php
blob: f0b1273a7e3d7d76415fe20e52c2011e2abaee29 (plain)
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');
    }
}