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`;"); } } ?>