From 05aa5c78d64033f9f10184f49081c68a951ae754 Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Sat, 3 Dec 2011 03:48:33 +0800 Subject: Allowed larger item amounts for mysql database. Changed range of amount to unsigned int(10). Sqlite update scripts is empty since no change was required here. Reviewed-by: Bertram. --- src/sql/sqlite/createTables.sql | 2 +- src/sql/sqlite/updates/update_18_to_19.sql | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 src/sql/sqlite/updates/update_18_to_19.sql (limited to 'src/sql/sqlite') diff --git a/src/sql/sqlite/createTables.sql b/src/sql/sqlite/createTables.sql index b2d94fb..9a9dfe2 100644 --- a/src/sql/sqlite/createTables.sql +++ b/src/sql/sqlite/createTables.sql @@ -419,7 +419,7 @@ AS INSERT INTO mana_world_states VALUES('accountserver_startup',NULL,NULL, strftime('%s','now')); INSERT INTO mana_world_states VALUES('accountserver_version',NULL,NULL, strftime('%s','now')); -INSERT INTO mana_world_states VALUES('database_version', NULL,'18', strftime('%s','now')); +INSERT INTO mana_world_states VALUES('database_version', NULL,'19', strftime('%s','now')); -- all known transaction codes diff --git a/src/sql/sqlite/updates/update_18_to_19.sql b/src/sql/sqlite/updates/update_18_to_19.sql new file mode 100644 index 0000000..8cd713e --- /dev/null +++ b/src/sql/sqlite/updates/update_18_to_19.sql @@ -0,0 +1,9 @@ +-- No change required. It was an mysql issue only + + +-- update the database version, and set date of update +UPDATE mana_world_states + SET value = '19', + moddate = strftime('%s','now') + WHERE state_name = 'database_version'; + -- cgit