mirror of
https://github.com/slawkens/myaac.git
synced 2025-11-03 17:26:23 +01:00
Fixed rest of the migrations
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
// add new forum.guild and forum.access fields
|
||||
|
||||
$up = function ($db) {
|
||||
$up = function () use ($db) {
|
||||
if (!$db->hasColumn(TABLE_PREFIX . 'forum_boards', 'guild')) {
|
||||
$db->addColumn(TABLE_PREFIX . 'forum_boards', 'guild', 'TINYINT(1) NOT NULL DEFAULT 0 AFTER `closed`');
|
||||
}
|
||||
@@ -15,7 +15,7 @@ $up = function ($db) {
|
||||
}
|
||||
};
|
||||
|
||||
$down = function ($db) {
|
||||
$down = function () use ($db) {
|
||||
if ($db->hasColumn(TABLE_PREFIX . 'forum_boards', 'guild')) {
|
||||
$db->dropColumn(TABLE_PREFIX . 'forum_boards', 'guild');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user