mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 09:19:22 +02:00

* changed tableExist and fieldExist to $db->hasTable(table) + $db->hasColumn(table, column) * new configurable: database_log - can log database queries and show in website source when logged as super admin * removed debug_level configurable, enabled by default when logged on super admin * added OTS_Account:getCountry() * added posibility to load OTS_Player partially, and without skills * (internal) changed depracated $ots->createObject() functions with their OTS_ equivalents * (internal) removed unused code
11 lines
428 B
PHP
11 lines
428 B
PHP
<?php
|
|
|
|
// add new forum.guild and forum.access fields
|
|
if(!$db->hasColumn(TABLE_PREFIX . 'forum_boards', 'guild')) {
|
|
$db->query("ALTER TABLE `" . TABLE_PREFIX . "forum_boards` ADD `guild` TINYINT(1) NOT NULL DEFAULT 0 AFTER `closed`;");
|
|
}
|
|
|
|
if(!$db->hasColumn(TABLE_PREFIX . 'forum_boards', 'access')) {
|
|
$db->query("ALTER TABLE `" . TABLE_PREFIX . "forum_boards` ADD `access` TINYINT(1) NOT NULL DEFAULT 0 AFTER `guild`;");
|
|
}
|
|
?>
|