summaryrefslogtreecommitdiff
path: root/src/sql/mysql
diff options
context:
space:
mode:
authorAndreas Habel <mail@exceptionfault.de>2008-09-19 12:50:53 +0000
committerAndreas Habel <mail@exceptionfault.de>2008-09-19 12:50:53 +0000
commit410f448669a2ed843ff0b412924c04c8fbe87458 (patch)
tree5a90ebcc0c69e2644fadb7de272095594379f997 /src/sql/mysql
parent70befcc989d783d1b7adff2a501052f3cdb02518 (diff)
downloadmanaserv-410f448669a2ed843ff0b412924c04c8fbe87458.tar.gz
manaserv-410f448669a2ed843ff0b412924c04c8fbe87458.tar.bz2
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/mysql')
-rw-r--r--src/sql/mysql/createTables.sql30
1 files changed, 17 insertions, 13 deletions
diff --git a/src/sql/mysql/createTables.sql b/src/sql/mysql/createTables.sql
index 2f164cca..4db80e82 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`
--