Browse Source

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
develop
tswagger 10 years ago
parent
commit
dd4550374f
  1. 9
      sql/Aauth_v2.sql
  2. 6
      sql/readme.txt

9
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;
-- ----------------------------

6
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 :)

Loading…
Cancel
Save