mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +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
17 lines
558 B
PHP
17 lines
558 B
PHP
<?php
|
|
if(!$db->hasColumn(TABLE_PREFIX . 'hooks', 'ordering'))
|
|
$db->query("ALTER TABLE `" . TABLE_PREFIX . "hooks` ADD `ordering` INT(11) NOT NULL DEFAULT 0 AFTER `file`;");
|
|
|
|
if(!$db->hasTable(TABLE_PREFIX . 'admin_menu'))
|
|
$db->query("
|
|
CREATE TABLE `myaac_admin_menu`
|
|
(
|
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
`name` VARCHAR(255) NOT NULL DEFAULT '',
|
|
`page` VARCHAR(255) NOT NULL DEFAULT '',
|
|
`ordering` INT(11) NOT NULL DEFAULT 0,
|
|
`flags` INT(11) NOT NULL DEFAULT 0,
|
|
`enabled` INT(1) NOT NULL DEFAULT 1,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE = MyISAM;");
|
|
?>
|