diff options
author | BlueRaja <BlueRaja.admin@gmail.com> | 2013-01-26 03:30:45 -0600 |
---|---|---|
committer | BlueRaja <BlueRaja.admin@gmail.com> | 2013-01-26 03:30:45 -0600 |
commit | d7b0c04459a6ec42a37255c38d67cea14fb60e61 (patch) | |
tree | 4269be8ec67fa3f4d12932041d3b37fa1f007daf /db updates.sql | |
parent | 1e65273d68ffdec07f49c14e929499af21f7776a (diff) | |
download | pathery-d7b0c04459a6ec42a37255c38d67cea14fb60e61.tar.xz |
Moved usersData table to users table, added a few more columns to users (currently unused)
Diffstat (limited to 'db updates.sql')
-rw-r--r-- | db updates.sql | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/db updates.sql b/db updates.sql index bb3bcb3..3f2c593 100644 --- a/db updates.sql +++ b/db updates.sql @@ -36,8 +36,24 @@ ALTER TABLE `mapOfTheDay` ADD INDEX ( `mapExpireTime` , `mapType` ); -- The new code relies on these being unique, so we'll enforce that through indices. Make sure you -- verify these ARE unique in the DB before adding these indices (they weren't in my test DB) -- Should probably run these two commands by themselves, one at a time -ALTER TABLE `maps` ADD UNIQUE ( `challengeTier` , `challengeSuborder`); +ALTER TABLE `challengeMaps` ADD UNIQUE ( `challengeTier` , `challengeSuborder`); ALTER TABLE `challenges` DROP INDEX `mapID` , -ADD UNIQUE `mapID` ( `mapID` , `ordering` );
\ No newline at end of file +ADD UNIQUE `mapID` ( `mapID` , `ordering` ); + +-- Move shit from userData table to users +ALTER TABLE `users` ADD `displayColor` VARCHAR( 7 ) NOT NULL DEFAULT '#cccccc' , +ADD `wallColor` VARCHAR( 7 ) NOT NULL DEFAULT '#666666' , +ADD `wallEmblem` VARCHAR( 64 ) NOT NULL DEFAULT 'blank.png'; + +UPDATE users, userData +SET users.displayColor = userData.displayColor, + users.wallColor = userData.wallColor, + users.wallEmblem = userData.wallEmblem +WHERE users.ID = userData.userID; + +DROP TABLE `userData`; + +ALTER TABLE `users` ADD `dateChatGaggedUntil` DATETIME NULL , +ADD `isOptedOutOfEmails` BOOLEAN NOT NULL DEFAULT '0';
\ No newline at end of file |