diff options
| author | Andreas Habel <mail@exceptionfault.de> | 2008-09-19 12:50:53 +0000 |
|---|---|---|
| committer | Andreas Habel <mail@exceptionfault.de> | 2008-09-19 12:50:53 +0000 |
| commit | 410f448669a2ed843ff0b412924c04c8fbe87458 (patch) | |
| tree | 5a90ebcc0c69e2644fadb7de272095594379f997 /src/sql/sqlite | |
| parent | 70befcc989d783d1b7adff2a501052f3cdb02518 (diff) | |
| download | manaserv-410f448669a2ed843ff0b412924c04c8fbe87458.tar.gz manaserv-410f448669a2ed843ff0b412924c04c8fbe87458.tar.xz manaserv-410f448669a2ed843ff0b412924c04c8fbe87458.zip | |
* Doxygen now writes all warnings into a separate file
* Added link to wiki documentation as comment into tmwserv.xml
* Added table tmw_char_skills to store skills of a character and removed weapon skills from table tmw_characters.
Diffstat (limited to 'src/sql/sqlite')
| -rw-r--r-- | src/sql/sqlite/createTables.sql | 25 | ||||
| -rw-r--r-- | src/sql/sqlite/tmw.db | bin | 19456 -> 24576 bytes |
2 files changed, 14 insertions, 11 deletions
diff --git a/src/sql/sqlite/createTables.sql b/src/sql/sqlite/createTables.sql index 4ff336b..ba7fa5e 100644 --- a/src/sql/sqlite/createTables.sql +++ b/src/sql/sqlite/createTables.sql @@ -34,21 +34,24 @@ CREATE TABLE tmw_characters vit INTEGER NOT NULL, int INTEGER NOT NULL, will INTEGER NOT NULL, - unarmed_exp INTEGER NOT NULL, - knife_exp INTEGER NOT NULL, - sword_exp INTEGER NOT NULL, - polearm_exp INTEGER NOT NULL, - staff_exp INTEGER NOT NULL, - whip_exp INTEGER NOT NULL, - bow_exp INTEGER NOT NULL, - shoot_exp INTEGER NOT NULL, - mace_exp INTEGER NOT NULL, - axe_exp INTEGER NOT NULL, - thrown_exp INTEGER NOT NULL, -- FOREIGN KEY (user_id) REFERENCES tmw_accounts(id) ); +CREATE INDEX tmw_characters_user ON tmw_characters ( user_id ); +CREATE UNIQUE INDEX tmw_characters_name ON tmw_characters ( name ); + +CREATE TABLE tmw_char_skills +( + char_id INTEGER NOT NULL, + skill_id INTEGER NOT NULL, + skill_exp INTEGER NOT NULL, + -- + FOREIGN KEY (char_id) REFERENCES tmw_characters(id) +); + +CREATE INDEX tmw_char_skills_char ON tmw_char_skills ( char_id ); + CREATE TABLE tmw_inventories ( id INTEGER PRIMARY KEY, diff --git a/src/sql/sqlite/tmw.db b/src/sql/sqlite/tmw.db Binary files differindex d212f5a..a9f7228 100644 --- a/src/sql/sqlite/tmw.db +++ b/src/sql/sqlite/tmw.db |
