aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/1.117_forum_add_close.php
blob: dfc0ccd366b49e731597efee47c34e6311e8b5a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

class ForumAddClose extends Migration {

    function description() {
        return 'Thread can now be closed.';
    }

    function up() {
        DBManager::get()->exec("ALTER TABLE forum_entries
            ADD `closed` TINYINT( 1 ) NOT NULL DEFAULT '0';");
    }

    function down() {
        DBManager::get()->exec("ALTER TABLE `forum_entries`
            DROP `closed`;");
    }

}

?>