From dd4550374f9afa794f710b04f17b2a70d9120cbb Mon Sep 17 00:00:00 2001 From: tswagger Date: Tue, 24 Feb 2015 22:27:20 -0600 Subject: [PATCH] Removed redundant index keys on a few tables. Removed duplicate keys that were causing MySQL to throw warnings. These keys were exactly the same as the primary key and were superfluous. Also edited the grammer in the sql/readme.txt modified: sql/Aauth_v2.sql modified: sql/readme.txt --- sql/Aauth_v2.sql | 9 +++------ sql/readme.txt | 6 +++--- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/sql/Aauth_v2.sql b/sql/Aauth_v2.sql index a597e07..df13f75 100644 --- a/sql/Aauth_v2.sql +++ b/sql/Aauth_v2.sql @@ -22,8 +22,7 @@ DROP TABLE IF EXISTS `aauth_groups`; CREATE TABLE `aauth_groups` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` text, - PRIMARY KEY (`id`), - KEY `id_index` (`id`) + PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; -- ---------------------------- @@ -41,8 +40,7 @@ CREATE TABLE `aauth_perms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` text, `definition` text, - PRIMARY KEY (`id`), - KEY `id_index` (`id`) + PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- @@ -135,8 +133,7 @@ CREATE TABLE `aauth_users` ( `verification_code` text COLLATE utf8_general_ci, `ip_address` text COLLATE utf8_general_ci, `login_attempts` int(11) DEFAULT '0', - PRIMARY KEY (`id`), - KEY `id_index` (`id`) + PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci; -- ---------------------------- diff --git a/sql/readme.txt b/sql/readme.txt index ae9f6ea..8a0bff0 100644 --- a/sql/readme.txt +++ b/sql/readme.txt @@ -1,8 +1,8 @@ Aauth V2 Database ----------------- -- First you must create a database. -- Execute sql "Aauth.sql" file in your database -- Don't forget to change database connection setups from application/config/database.php +- First open your database (or create one if you have not already done so) +- Execute sql "Aauth_v2.sql" file in your database +- If you have not already, don't forget to change database connection settings in application/config/database.php That's All :)