summaryrefslogtreecommitdiff
path: root/src/sql/sqlite/updates
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-12-29 07:41:49 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-12-29 07:41:49 +0100
commit5f03e73484a50c9689956b32ef97630b56d2a00d (patch)
treeca6d3d7467d4582a2f64be4a45c056f55642fd17 /src/sql/sqlite/updates
parent4ead8e0b6af924132a6fb227325a868db0df335c (diff)
downloadmanaserv-5f03e73484a50c9689956b32ef97630b56d2a00d.tar.gz
manaserv-5f03e73484a50c9689956b32ef97630b56d2a00d.tar.bz2
manaserv-5f03e73484a50c9689956b32ef97630b56d2a00d.tar.xz
manaserv-5f03e73484a50c9689956b32ef97630b56d2a00d.zip
Made the server handle properly the characters slots.
I turned the vector storing character data into a map, keeping the character's slot. Fixed a memleak along the way. Reviewed-by: Crush.
Diffstat (limited to 'src/sql/sqlite/updates')
-rw-r--r--src/sql/sqlite/updates/update_13_to_14.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sql/sqlite/updates/update_13_to_14.sql b/src/sql/sqlite/updates/update_13_to_14.sql
new file mode 100644
index 00000000..a4c4a38a
--- /dev/null
+++ b/src/sql/sqlite/updates/update_13_to_14.sql
@@ -0,0 +1,10 @@
+
+-- Add the slot column to table mana_characters
+ALTER TABLE mana_characters ADD slot INTEGER NOT NULL;
+
+-- Update the database version, and set date of update
+UPDATE mana_world_states
+ SET value = '14',
+ moddate = strftime('%s','now')
+ WHERE state_name = 'database_version';
+