diff --git a/system/migrations/1.php b/system/migrations/1.php index 8d12f421..538945df 100644 --- a/system/migrations/1.php +++ b/system/migrations/1.php @@ -10,7 +10,7 @@ `type` INT(2) NOT NULL DEFAULT 0, `file` VARCHAR(100) NOT NULL, PRIMARY KEY (`id`) -) ENGINE = MyISAM; +) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8; "); ?> \ No newline at end of file diff --git a/system/migrations/10.php b/system/migrations/10.php index c14ec77a..da660ab9 100644 --- a/system/migrations/10.php +++ b/system/migrations/10.php @@ -1,7 +1,7 @@ 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` @@ -13,5 +13,5 @@ CREATE TABLE `myaac_admin_menu` `flags` INT(11) NOT NULL DEFAULT 0, `enabled` INT(1) NOT NULL DEFAULT 1, PRIMARY KEY (`id`) -) ENGINE = MyISAM;"); -?> \ No newline at end of file +) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8; +"); \ No newline at end of file diff --git a/system/migrations/12.php b/system/migrations/12.php index 72c59b12..9730ed8b 100644 --- a/system/migrations/12.php +++ b/system/migrations/12.php @@ -22,7 +22,8 @@ CREATE TABLE `" . TABLE_PREFIX . "items` `plural` VARCHAR(50) NOT NULL DEFAULT '', `attributes` VARCHAR(500) NOT NULL DEFAULT '', PRIMARY KEY (`id`) -) ENGINE = MyISAM;"); +) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8; +"); // new weapons table if(!$db->hasTable(TABLE_PREFIX . 'weapons')) @@ -34,7 +35,8 @@ CREATE TABLE `" . TABLE_PREFIX . "weapons` `maglevel` INT(11) NOT NULL DEFAULT 0, `vocations` VARCHAR(100) NOT NULL DEFAULT '', PRIMARY KEY (`id`) -) ENGINE = MyISAM;"); +) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8; +"); // modify vocations to support json data $db->query("ALTER TABLE `" . TABLE_PREFIX . "spells` MODIFY `vocations` VARCHAR(100) NOT NULL DEFAULT '';"); diff --git a/system/migrations/17.php b/system/migrations/17.php index 1af439a0..e4b1667c 100644 --- a/system/migrations/17.php +++ b/system/migrations/17.php @@ -12,8 +12,9 @@ CREATE TABLE `myaac_menu` `ordering` INT(11) NOT NULL DEFAULT 0, `enabled` INT(1) NOT NULL DEFAULT 1, PRIMARY KEY (`id`) -) ENGINE = MyISAM;"); - +) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8; +"); + $db->query(" /* MENU_CATEGORY_NEWS kathrine */ INSERT INTO `myaac_menu` (`template`, `name`, `link`, `category`, `ordering`) VALUES ('kathrine', 'Latest News', 'news', 1, 0); diff --git a/system/migrations/22.php b/system/migrations/22.php index e41c2941..eca1ddac 100644 --- a/system/migrations/22.php +++ b/system/migrations/22.php @@ -11,7 +11,8 @@ CREATE TABLE `z_polls` ( `answers` int(11) NOT NULL DEFAULT 0, `votes_all` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;'); +) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8; +'); if(!$db->hasTable('z_polls_answers')) $db->query(' @@ -20,7 +21,8 @@ $db->query(' `answer_id` int(11) NOT NULL, `answer` varchar(255) NOT NULL, `votes` int(11) NOT NULL DEFAULT 0 -) ENGINE=MyISAM DEFAULT CHARSET=latin1;'); +) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8; +'); if(!$db->hasColumn('accounts', 'vote')) $db->query('ALTER TABLE `accounts` ADD `vote` INT( 11 ) DEFAULT 0 NOT NULL ;');