Skip to content

Commit

Permalink
Removed redundant index keys on a few tables.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tswagger committed Feb 25, 2015
1 parent 6de68fe commit dd45503
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 3 additions & 6 deletions sql/Aauth_v2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;

-- ----------------------------
Expand All @@ -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;

-- ----------------------------
Expand Down Expand Up @@ -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;

-- ----------------------------
Expand Down
6 changes: 3 additions & 3 deletions sql/readme.txt
Original file line number Diff line number Diff line change
@@ -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 :)

0 comments on commit dd45503

Please sign in to comment.