aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/1.216_add_evaldate.php
blob: e2ac38bb4d5d96b43999718beaf73ef57120b944 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
class AddEvaldate extends Migration
{
    public function description()
    {
        return 'add column "evaldate" to "evalanswer_user" table';
    }

    public function up()
    {
        $db = DBManager::get();

        $db->exec('ALTER TABLE evalanswer_user ADD evaldate int(11) NOT NULL default 0');
    }

    public function down()
    {
        $db = DBManager::get();

        $db->exec('ALTER TABLE evalanswer_user DROP evaldate');
    }
}