mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-20 12:33:27 +02:00
Merge branch 'develop' into feature/settings
This commit is contained in:
@@ -1,13 +1,4 @@
|
||||
<?php
|
||||
// add user_agent column into visitors
|
||||
|
||||
if(!$db->hasTable(TABLE_PREFIX . 'settings')) {
|
||||
$db->exec("CREATE TABLE `" . TABLE_PREFIX . "settings`
|
||||
(
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`plugin_name` VARCHAR(255) NOT NULL DEFAULT '',
|
||||
`key` VARCHAR(255) NOT NULL DEFAULT '',
|
||||
`value` TEXT NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `key` (`key`)
|
||||
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;");
|
||||
}
|
||||
$db->exec('ALTER TABLE `' . TABLE_PREFIX . "visitors` ADD `user_agent` VARCHAR(255) NOT NULL DEFAULT '';");
|
||||
|
3
system/migrations/35.php
Normal file
3
system/migrations/35.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
// add look column
|
||||
$db->exec('ALTER TABLE `' . TABLE_PREFIX . "monsters` ADD `look` VARCHAR(255) NOT NULL DEFAULT '' AFTER `health`;");
|
1
system/migrations/36.php
Normal file
1
system/migrations/36.php
Normal file
@@ -0,0 +1 @@
|
||||
<?php
|
Reference in New Issue
Block a user