c40b387f384ec1695f3fbdf79d83399128a671f1
chinhli
  Mon Apr 9 15:52:17 2012 -0700
Tidy up the login UI
diff --git src/hg/hgLogin/gbMembers.sql src/hg/hgLogin/gbMembers.sql
index 4448575..b1ca3e3 100644
--- src/hg/hgLogin/gbMembers.sql
+++ src/hg/hgLogin/gbMembers.sql
@@ -1,22 +1,24 @@
 # gbMembers.sql was originally generated by the autoSql program, which also 
 # generated gbMembers.c and gbMembers.h.  This creates the database representation of
 # an object which can be loaded and saved from RAM in a fairly 
 # automatic way.
 
 # This sql was hacked to insert the datetime object, autoSql could not
 # do that and added auto_increment to the idx field and index with userName
 
 
 #UCSC Genome Browser members
+DROP TABLE IF EXISTS gbMembers;
 CREATE TABLE gbMembers (
     idx int unsigned not null auto_increment,	# auto-increment unique ID
     userName varchar(255) not null,	        # Name used to login
     realName varchar(255) not null,	# Full name
     password varchar(255) not null,	# Encrypted password
     email varchar(255) not null,	# Email address
     lastUse DATETIME not null,	        # Last date the user log in
     activated char(1) not null,	        # Account activated? Y or N
     dateAuthenticated DATETIME not null, # Date the account activated via email
               #Indices
-    PRIMARY KEY(idx, userName)
+    PRIMARY KEY(idx),
+    INDEX(userName)
 );