diff options
| author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-08-30 20:31:46 +0200 |
|---|---|---|
| committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-08-30 20:31:46 +0200 |
| commit | ca5afebc85cbf769122105904b512942272c0ea3 (patch) | |
| tree | 180b9a00993a4a7eeca56eb4e4353c078f95a564 /src/sql/sqlite/updates | |
| parent | a4d0b4d6e0360f09b1f01ec59f548cdb297ebd4c (diff) | |
| download | manaserv-ca5afebc85cbf769122105904b512942272c0ea3.tar.gz manaserv-ca5afebc85cbf769122105904b512942272c0ea3.tar.xz manaserv-ca5afebc85cbf769122105904b512942272c0ea3.zip | |
Added missing sql update scripts.
Diffstat (limited to 'src/sql/sqlite/updates')
| -rw-r--r-- | src/sql/sqlite/updates/update_14_to_15.sql | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/sql/sqlite/updates/update_14_to_15.sql b/src/sql/sqlite/updates/update_14_to_15.sql new file mode 100644 index 0000000..777764d --- /dev/null +++ b/src/sql/sqlite/updates/update_14_to_15.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 = '15', + moddate = strftime('%s','now') + WHERE state_name = 'database_version'; |
