Navigation Menu

Skip to content

Commit

Permalink
Reduce two large key
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Dec 14, 2012
1 parent 7fc9a0b commit 851498e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Expand Up @@ -2,12 +2,10 @@ DROP TABLE IF EXISTS users, posts, comments;
SET NAMES utf8;
CREATE TABLE users (
id int NOT NULL,
name varchar(256) NOT NULL,
name varchar(50) NOT NULL,
PRIMARY KEY (id),
KEY (name)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Warnings:
Warning 1071 Specified key was too long; max key length is 767 bytes
CREATE TABLE posts (
id int NOT NULL,
content mediumtext,
Expand Down
Expand Up @@ -25,7 +25,7 @@ SET NAMES utf8;

CREATE TABLE users (
id int NOT NULL,
name varchar(256) NOT NULL,
name varchar(50) NOT NULL,
PRIMARY KEY (id),
KEY (name)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Expand Down

0 comments on commit 851498e

Please sign in to comment.