aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/1.37_log_actions_expires.php
blob: 8af3e797dd9606836c3995e33732cf092284cc83 (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
<?
class LogActionsExpires extends Migration
{
    function description ()
    {
        return '"expires" column of log_actions should not be NULL';
    }

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

        $db->exec("ALTER TABLE log_actions CHANGE expires
                      expires int(20) NOT NULL default 0");
    }

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

        $db->exec("ALTER TABLE log_actions CHANGE expires
                      expires int(20) default NULL");
    }
}
?>