aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/5.2.7_add_comment_to_help_content.php
blob: d87366d7bf9d17628c47d25ed1f45da60c9bce80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php


class AddCommentToHelpContent extends Migration
{
    public function description()
    {
        return 'Adds the column "comment" to the help_content table.';
    }


    protected function up()
    {
        DBManager::get()->exec(
            "ALTER TABLE `help_content`
            ADD COLUMN comment TEXT NULL"
        );
    }


    protected function down()
    {
        DBManager::get()->exec(
            "ALTER TABLE `help_content`
            DROP COLUMN comment"
        );
    }
}