summaryrefslogtreecommitdiff
path: root/src/sql/sqlite/createTables.sql
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-09-23 22:37:15 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-09-26 18:09:32 +0200
commit73f1933f94bcadb8c3b3f9763e6afad5f02891f4 (patch)
tree6cd028fcfe3d4a8675f00d5a4a6566d62f3f679a /src/sql/sqlite/createTables.sql
parent825bc65e0328367c26bebbf68066de3800372f84 (diff)
downloadmanaserv-73f1933f94bcadb8c3b3f9763e6afad5f02891f4.tar.gz
manaserv-73f1933f94bcadb8c3b3f9763e6afad5f02891f4.tar.bz2
manaserv-73f1933f94bcadb8c3b3f9763e6afad5f02891f4.tar.xz
manaserv-73f1933f94bcadb8c3b3f9763e6afad5f02891f4.zip
Store questlog values in the database
Diffstat (limited to 'src/sql/sqlite/createTables.sql')
-rw-r--r--src/sql/sqlite/createTables.sql19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/sql/sqlite/createTables.sql b/src/sql/sqlite/createTables.sql
index 95dc5a23..437a0546 100644
--- a/src/sql/sqlite/createTables.sql
+++ b/src/sql/sqlite/createTables.sql
@@ -110,7 +110,7 @@ CREATE TABLE mana_char_abilities
(
char_id INTEGER NOT NULL,
ability_id INTEGER NOT NULL,
- PRIMARY KEY (char_id, ability_id),
+ PRIMARY KEY (char_id, ability_id),
FOREIGN KEY (char_id) REFERENCES mana_characters(id)
);
@@ -348,6 +348,21 @@ CREATE TABLE mana_online_list
);
-----------------------------------------------------------------------------
+
+CREATE TABLE mana_questlog
+(
+ char_id INTEGER NOT NULL,
+ quest_id INTEGER NOT NULL,
+ quest_state INTEGER NOT NULL,
+ quest_title TEXT NOT NULL,
+ quest_description TEXT NOT NULL,
+ --
+ FOREIGN KEY (char_id) REFERENCES mana_characters(id)
+);
+CREATE INDEX mana_questlog_char_id ON mana_questlog ( char_id );
+CREATE INDEX mana_questlog_quest_id ON mana_questlog ( quest_id );
+
+-----------------------------------------------------------------------------
-- Views
-----------------------------------------------------------------------------
@@ -396,7 +411,7 @@ AS
INSERT INTO mana_world_states VALUES('accountserver_startup',-1,'0', strftime('%s','now'));
INSERT INTO mana_world_states VALUES('accountserver_version',-1,'0', strftime('%s','now'));
-INSERT INTO mana_world_states VALUES('database_version', -1,'25', strftime('%s','now'));
+INSERT INTO mana_world_states VALUES('database_version', -1,'26', strftime('%s','now'));
-- all known transaction codes