Skip to content

Commit

Permalink
edit columns size, add index on clanmember table #85
Browse files Browse the repository at this point in the history
  • Loading branch information
HarpyWar committed Aug 29, 2014
1 parent ee4d783 commit 1159fe0
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions conf/sql_DB_layout.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,26 @@
"acct_username varchar(32)","NULL"
"username varchar(32)","NULL" && "UPDATE ${prefix}BNET SET username = lower(acct_username)"
"acct_userid int","NULL"
"acct_passhash1 varchar(128)","NULL"
"acct_passhash1 varchar(40)","NULL"
"acct_email varchar(128)","NULL"
"auth_admin varchar(16)","'false'"
"auth_normallogin varchar(16)","'true'"
"auth_changepass varchar(16)","'true'"
"auth_changeprofile varchar(16)","'true'"
"auth_botlogin varchar(16)","'true'"
"auth_operator varchar(16)","'false'"
"auth_admin varchar(6)","'false'"
"auth_normallogin varchar(6)","'true'"
"auth_changepass varchar(6)","'true'"
"auth_changeprofile varchar(6)","'true'"
"auth_botlogin varchar(6)","'false'"
"auth_operator varchar(6)","'false'"
"new_at_team_flag int","'0'"
"auth_lockk varchar(16)","'0'"
"auth_mute varchar(16)","'0'"
"auth_command_groups varchar(128)","'1'"
"auth_lock varchar(1)","'0'"
"auth_lock_time int","'0'"
"auth_lock_reason varchar(128)","NULL"
"auth_mute varchar(1)","'0'"
"auth_mute_time int","'0'"
"auth_mute_reason varchar(128)","NULL"
"auth_command_groups varchar(16)","'1'"
"acct_lastlogin_time int","'0'"
"acct_lastlogin_owner varchar(128)","NULL"
"acct_lastlogin_clienttag varchar(128)","NULL"
"acct_lastlogin_ip varchar(32)","NULL"
"acct_lastlogin_owner varchar(16)","NULL"
"acct_lastlogin_clienttag varchar(4)","NULL"
"acct_lastlogin_ip varchar(16)","NULL"
:"DROP INDEX username"
:"CREATE UNIQUE INDEX username2 ON ${prefix}BNET (username)"
[${prefix}WOL]
Expand All @@ -43,7 +47,7 @@
"uid int NOT NULL PRIMARY KEY","'0'"
[${prefix}profile]
"uid int NOT NULL PRIMARY KEY","'0'"
"sex varchar(16)","NULL"
"sex varchar(8)","NULL"
"location varchar(128)","NULL"
"description varchar(256)","NULL"
"age varchar(16)","NULL"
Expand Down Expand Up @@ -76,7 +80,6 @@
"WAR3_random_wins int","'0'"
"WAR3_random_losses int","'0'"
"WAR3_teamcount int","'0'"
"WAR3_userselected_icon varchar(16)","NULL"
"W3XP_solo_xp int","'0'"
"W3XP_solo_level int","'0'"
"W3XP_solo_wins int","'0'"
Expand All @@ -103,7 +106,8 @@
"W3XP_random_wins int","'0'"
"W3XP_random_losses int","'0'"
"W3XP_teamcount int","'0'"
"W3XP_userselected_icon varchar(16)","NULL"
"W3XP_userselected_icon varchar(4)","NULL"
"W3XP_iconstash varchar(256)","NULL"
"STAR_0_wins int","'0'"
"STAR_0_losses int","'0'"
"STAR_0_disconnects int","'0'"
Expand Down Expand Up @@ -132,6 +136,8 @@
"SEXP_1_high_rating int","'0'"
"SEXP_1_rank int","'0'"
"SEXP_1_high_rank int","'0'"
"SEXP_userselected_icon varchar(4)","NULL"
"SEXP_iconstash varchar(256)","NULL"
"TSUN_solo_rank int","'0'"
"TSUN_solo_points int","'0'"
"TSUN_solo_wins int","'0'"
Expand Down Expand Up @@ -163,6 +169,7 @@
"cid int","'0'"
"status int","'0'"
"join_time int","'0'"
:"CREATE INDEX cid ON ${prefix}clanmember (cid)"
[${prefix}arrangedteam]
"teamid int NOT NULL PRIMARY KEY","'0'"
"size int","0"
Expand Down

0 comments on commit 1159fe0

Please sign in to comment.