diff options
Diffstat (limited to 'src/sql/mysql')
-rw-r--r-- | src/sql/mysql/createTables.sql | 2 | ||||
-rw-r--r-- | src/sql/mysql/updates/update_15_to_16.sql | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/sql/mysql/createTables.sql b/src/sql/mysql/createTables.sql index 9e1e31a6..3a5f5187 100644 --- a/src/sql/mysql/createTables.sql +++ b/src/sql/mysql/createTables.sql @@ -39,7 +39,7 @@ CREATE TABLE IF NOT EXISTS `mana_characters` ( -- location on the map `x` smallint(5) unsigned NOT NULL, `y` smallint(5) unsigned NOT NULL, - `map_id` tinyint(3) unsigned NOT NULL, + `map_id` smallint(5) unsigned NOT NULL, `slot` smallint(5) unsigned NOT NULL, -- PRIMARY KEY (`id`), diff --git a/src/sql/mysql/updates/update_15_to_16.sql b/src/sql/mysql/updates/update_15_to_16.sql new file mode 100644 index 00000000..df94f995 --- /dev/null +++ b/src/sql/mysql/updates/update_15_to_16.sql @@ -0,0 +1,7 @@ +ALTER TABLE mana_characters CHANGE map_id map_id smallint(5); + +-- Update database version. +UPDATE mana_world_states +SET value = '16', +moddate = UNIX_TIMESTAMP() +WHERE state_name = 'database_version'; |