aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/6.0.21_update_help_content.php
blob: 480bfc7414f87335e68336c70dc0ac99d1a21176 (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
29
30
<?php

final class UpdateHelpContent extends Migration
{
    public function description()
    {
        return 'Update route for avatar help content';
    }
    protected function up()
    {
        DBManager::get()->exec(
            "UPDATE `help_content` SET `route` = 'dispatch.php/course/avatar' WHERE `help_content`.`content_id` = 'abfb5d03de288d02df436f9a8bb96d9d'"
        );
        DBManager::get()->exec(
            "UPDATE `help_content` SET `route` = 'dispatch.php/course/avatar' WHERE `help_content`.`content_id` = '5fab81bbd1e19949f304df08ea21ca1b'"
        );

        
    }

    protected function down()
    {
        DBManager::get()->exec(
            "UPDATE `help_content` SET `route` = 'dispatch.php/course/avatar/update' WHERE `help_content`.`content_id` = 'abfb5d03de288d02df436f9a8bb96d9d'"
        );
        DBManager::get()->exec(
            "UPDATE `help_content` SET `route` = 'dispatch.php/course/avatar/update' WHERE `help_content`.`content_id` = '5fab81bbd1e19949f304df08ea21ca1b'"
        );
    }
}