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

class ForumStickyPosts extends Migration {

    function description() {
        return 'Posts can now be marked as sticky.';
    }

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

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

}

?>