mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
* added forums for guilds and groups
* (internal) new function: OTS_Guild::hasMember(OTS_Player $player) * (internal) new function: Forum::hasAccess($board_id)
This commit is contained in:
11
system/migrations/15.php
Normal file
11
system/migrations/15.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
// add new forum.guild and forum.access fields
|
||||
if(!fieldExist('guild', TABLE_PREFIX . 'forum_boards')) {
|
||||
$db->query("ALTER TABLE `" . TABLE_PREFIX . "forum_boards` ADD `guild` TINYINT(1) NOT NULL DEFAULT 0 AFTER `closed`;");
|
||||
}
|
||||
|
||||
if(!fieldExist('access', TABLE_PREFIX . 'forum_boards')) {
|
||||
$db->query("ALTER TABLE `" . TABLE_PREFIX . "forum_boards` ADD `access` TINYINT(1) NOT NULL DEFAULT 0 AFTER `guild`;");
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user