Same on pid.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 15 Jan 2009 21:47:39 +0000 (22:47 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 15 Jan 2009 21:47:39 +0000 (22:47 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
upgrade/newdirectory-0.0.1/00_names.sql

index c4a0ce4..7497faf 100644 (file)
@@ -60,7 +60,8 @@ CREATE TABLE IF NOT EXISTS profile_name_search (
   name VARCHAR(255) NOT NULL COMMENT 'name to search for',
   particle VARCHAR(255) NOT NULL DEFAULT '' COMMENT 'particle of the name to search for',
   typeid TINYINT(2) UNSIGNED NOT NULL COMMENT 'type of name',
-  PRIMARY KEY (pid, id)
+  PRIMARY KEY (pid, id),
+  INDEX pid (pid)
 ) CHARSET=utf8 COMMENT = 'Names of alumni (search table)';
 
 INSERT INTO  profile_name_search (pid, name, typeid)