diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-05-19 09:46:11 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-05-19 09:46:11 +0000 |
commit | 08473537fcea7e14b049b0fba86d5f49bed01f2c (patch) | |
tree | 9387e934418218dc63ac21b8518be1a0cfa7bab2 /sql-files/upgrade_svn10575_db.sql | |
parent | 2b6eceb685dd222e0b84defa0f2c415c4adefd43 (diff) | |
download | hercules-08473537fcea7e14b049b0fba86d5f49bed01f2c.tar.gz hercules-08473537fcea7e14b049b0fba86d5f49bed01f2c.tar.bz2 hercules-08473537fcea7e14b049b0fba86d5f49bed01f2c.tar.xz hercules-08473537fcea7e14b049b0fba86d5f49bed01f2c.zip |
* SQL files fixup
- extended convert_engine_myisam and added innodb version
- changed the max. email length to 39 (to match value in source code)
- added comment for storage/guild storage picklog entries
- changed SETs to ENUMs, which is the proper data type in logs
- fixed incorrect defaults, shortened mapname lengths to 11
- use upgrade_svn10575_*.sql to apply changes
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10575 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'sql-files/upgrade_svn10575_db.sql')
-rw-r--r-- | sql-files/upgrade_svn10575_db.sql | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sql-files/upgrade_svn10575_db.sql b/sql-files/upgrade_svn10575_db.sql new file mode 100644 index 000000000..90d8fb27a --- /dev/null +++ b/sql-files/upgrade_svn10575_db.sql @@ -0,0 +1,11 @@ +ALTER TABLE `login` CHANGE `email` `email` VARCHAR( 39 ) NOT NULL; +ALTER TABLE `login` CHANGE `sex` `sex` ENUM( 'M', 'F', 'S' ) NOT NULL DEFAULT 'M'; + +ALTER TABLE `char` CHANGE `last_map` `last_map` VARCHAR( 11 ) NOT NULL; +ALTER TABLE `char` CHANGE `save_map` `save_map` VARCHAR( 11 ) NOT NULL; + +ALTER TABLE `memo` CHANGE `map` `map` VARCHAR( 11 ) NOT NULL; +ALTER TABLE `memo` CHANGE `x` `x` SMALLINT( 4 ) UNSIGNED NOT NULL DEFAULT '0'; +ALTER TABLE `memo` CHANGE `y` `y` SMALLINT( 4 ) UNSIGNED NOT NULL DEFAULT '0'; + +ALTER TABLE `party` CHANGE `name` `name` VARCHAR( 24 ) NOT NULL; |