summaryrefslogtreecommitdiff
path: root/src/sql/mysql/updates
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-10-16 15:12:04 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-10-17 17:54:02 +0200
commit57aac157c8824b972b5fcb5df894772e2d2389f7 (patch)
treee7d1db433d26a2cd0715f300dd1dfc9560bca245 /src/sql/mysql/updates
parenta500c675a87bf11e7d5980d208555002149d8ccc (diff)
downloadmanaserv-57aac157c8824b972b5fcb5df894772e2d2389f7.tar.gz
manaserv-57aac157c8824b972b5fcb5df894772e2d2389f7.tar.bz2
manaserv-57aac157c8824b972b5fcb5df894772e2d2389f7.tar.xz
manaserv-57aac157c8824b972b5fcb5df894772e2d2389f7.zip
Changed the mana_accounts.email field length to 64 characters.
Reviewed-by: Crush. Resolves: Mana-mantis #251.
Diffstat (limited to 'src/sql/mysql/updates')
-rw-r--r--src/sql/mysql/updates/update_11_to_12.sql13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/sql/mysql/updates/update_11_to_12.sql b/src/sql/mysql/updates/update_11_to_12.sql
new file mode 100644
index 00000000..5029a6d9
--- /dev/null
+++ b/src/sql/mysql/updates/update_11_to_12.sql
@@ -0,0 +1,13 @@
+--
+-- Modify the table `mana_accouns` to change the email field length.
+-- Since the email is hashed, it needs a length of 64.
+--
+
+-- Note: `email` `email` isn't a copy paste error ;) See MySQL syntax.
+ALTER TABLE `mana_accounts` CHANGE COLUMN `email` `email` varchar(64) NOT NULL;
+
+-- Update database version.
+UPDATE mana_world_states
+SET value = '12',
+moddate = UNIX_TIMESTAMP()
+WHERE state_name = 'database_version';