Skip to content

Commit

Permalink
making slug unique
Browse files Browse the repository at this point in the history
  • Loading branch information
sean3z committed Feb 28, 2017
1 parent 8343144 commit 4c9cb70
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sql/pwfantasy.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Target Server Type : MYSQL
Target Server Version : 50717
File Encoding : 65001

Date: 2017-02-26 15:30:43
Date: 2017-02-28 18:45:27
*/

SET FOREIGN_KEY_CHECKS=0;
Expand Down Expand Up @@ -182,7 +182,8 @@ CREATE TABLE `talent` (
`show` int(11) DEFAULT NULL,
`image` varchar(255) DEFAULT NULL,
`bio` text,
PRIMARY KEY (`id`)
PRIMARY KEY (`id`),
UNIQUE KEY `talent_slug` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=478 DEFAULT CHARSET=utf8;

-- ----------------------------
Expand Down

0 comments on commit 4c9cb70

Please sign in to comment.