From 410f448669a2ed843ff0b412924c04c8fbe87458 Mon Sep 17 00:00:00 2001
From: Andreas Habel <mail@exceptionfault.de>
Date: Fri, 19 Sep 2008 12:50:53 +0000
Subject: * 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.

---
 src/sql/mysql/createTables.sql | 30 +++++++++++++++++-------------
 1 file changed, 17 insertions(+), 13 deletions(-)

(limited to 'src/sql/mysql/createTables.sql')

diff --git a/src/sql/mysql/createTables.sql b/src/sql/mysql/createTables.sql
index 2f164cc..4db80e8 100644
--- a/src/sql/mysql/createTables.sql
+++ b/src/sql/mysql/createTables.sql
@@ -46,18 +46,6 @@ CREATE TABLE IF NOT EXISTS `tmw_characters` (
     `vit`          smallint(5)  unsigned NOT NULL,
     `int`          smallint(5)  unsigned NOT NULL,
     `will`         smallint(5)  unsigned NOT NULL,
-    -- skill experience
-    `unarmed_exp`  smallint(5)  unsigned NOT NULL,
-    `knife_exp`    smallint(5)  unsigned NOT NULL,
-    `sword_exp`    smallint(5)  unsigned NOT NULL,
-    `polearm_exp`  smallint(5)  unsigned NOT NULL,
-    `staff_exp`    smallint(5)  unsigned NOT NULL,
-    `whip_exp`     smallint(5)  unsigned NOT NULL,
-    `bow_exp`      smallint(5)  unsigned NOT NULL,
-    `shoot_exp`    smallint(5)  unsigned NOT NULL,
-    `mace_exp`     smallint(5)  unsigned NOT NULL,
-    `axe_exp`      smallint(5)  unsigned NOT NULL,
-    `thrown_exp`   smallint(5)  unsigned NOT NULL,
     --
     PRIMARY KEY (`id`),
     UNIQUE KEY `name` (`name`),
@@ -68,7 +56,23 @@ CREATE TABLE IF NOT EXISTS `tmw_characters` (
 ) ENGINE=InnoDB
 DEFAULT CHARSET=utf8 
 AUTO_INCREMENT=1 ;
-    
+
+--
+-- table: `tmw_inventories`
+--
+
+CREATE TABLE IF NOT EXISTS `tmw_char_skills` (
+    `char_id`      int(10)      unsigned NOT NULL,
+    `skill_id`     smallint(5)  unsigned NOT NULL,
+    `skill_exp`    smallint(5)  unsigned NOT NULL,
+    --
+    PRIMARY KEY (`char_id`, `skill_id`),
+    FOREIGN KEY (`char_id`)
+        REFERENCES `tmw_characters` (`id`)
+        ON DELETE CASCADE
+) ENGINE=InnoDB
+DEFAULT CHARSET=utf8;
+
 --
 -- table: `tmw_inventories`
 --
-- 
cgit 

