From fba5a19e5885e3f4ddca2c249a96fbbe24c846b8 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Tue, 1 Nov 2011 04:13:56 +0100 Subject: Renamed the db update 15 to 18 as requested by Bjorn. --- src/sql/sqlite/createTables.sql | 2 +- src/sql/sqlite/updates/update_14_to_15.sql | 21 --------------------- src/sql/sqlite/updates/update_17_to_18.sql | 21 +++++++++++++++++++++ 3 files changed, 22 insertions(+), 22 deletions(-) delete mode 100644 src/sql/sqlite/updates/update_14_to_15.sql create mode 100644 src/sql/sqlite/updates/update_17_to_18.sql (limited to 'src/sql/sqlite') diff --git a/src/sql/sqlite/createTables.sql b/src/sql/sqlite/createTables.sql index 2d7360d..b2d94fb 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,'17', strftime('%s','now')); +INSERT INTO mana_world_states VALUES('database_version', NULL,'18', strftime('%s','now')); -- all known transaction codes diff --git a/src/sql/sqlite/updates/update_14_to_15.sql b/src/sql/sqlite/updates/update_14_to_15.sql deleted file mode 100644 index 777764d..0000000 --- a/src/sql/sqlite/updates/update_14_to_15.sql +++ /dev/null @@ -1,21 +0,0 @@ - --- Dropping the table will only unequip characters, so it's not an issue. -DROP TABLE mana_char_equips; - --- Recreate the table using the latest definition. -CREATE TABLE mana_char_equips -( - id INTEGER PRIMARY KEY, - owner_id INTEGER NOT NULL, - slot_type INTEGER NOT NULL, - item_id INTEGER NOT NULL, - item_instance INTEGER NOT NULL, - -- - FOREIGN KEY (owner_id) REFERENCES mana_characters(id) -); - --- Update the database version, and set date of update -UPDATE mana_world_states - SET value = '15', - moddate = strftime('%s','now') - WHERE state_name = 'database_version'; diff --git a/src/sql/sqlite/updates/update_17_to_18.sql b/src/sql/sqlite/updates/update_17_to_18.sql new file mode 100644 index 0000000..3fa75c6 --- /dev/null +++ b/src/sql/sqlite/updates/update_17_to_18.sql @@ -0,0 +1,21 @@ + +-- Dropping the table will only unequip characters, so it's not an issue. +DROP TABLE mana_char_equips; + +-- Recreate the table using the latest definition. +CREATE TABLE mana_char_equips +( + id INTEGER PRIMARY KEY, + owner_id INTEGER NOT NULL, + slot_type INTEGER NOT NULL, + item_id INTEGER NOT NULL, + item_instance INTEGER NOT NULL, + -- + FOREIGN KEY (owner_id) REFERENCES mana_characters(id) +); + +-- Update the database version, and set date of update +UPDATE mana_world_states + SET value = '18', + moddate = strftime('%s','now') + WHERE state_name = 'database_version'; -- cgit