From e13dcd8b7431461c99fbf475da1bc81282f0451a Mon Sep 17 00:00:00 2001 From: radiskull Date: Tue, 12 Aug 2014 21:30:11 +0000 Subject: [PATCH] =?UTF-8?q?#140=20gefixt=20vorbereitung=20f=C3=BCr=20#139?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/animegame_svn.sql | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/db/animegame_svn.sql b/db/animegame_svn.sql index 324e9bd..0c688ac 100644 --- a/db/animegame_svn.sql +++ b/db/animegame_svn.sql @@ -126,7 +126,6 @@ CREATE TABLE `attackenset` ( `round` int(2) NOT NULL, PRIMARY KEY (`char_ID`,`type`,`round`), KEY `attackenset_attack_id` (`attack_id`), - CONSTRAINT `attackenset_attack_id` FOREIGN KEY (`attack_id`) REFERENCES `lernen` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `attackenset_char_id` FOREIGN KEY (`char_id`) REFERENCES `chars` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; @@ -140,6 +139,20 @@ UNLOCK TABLES; /*!40000 ALTER TABLE `attackenset` ENABLE KEYS */; +-- +-- Definition of table `attackentyp` +-- + +DROP TABLE IF EXISTS `attackentyp`; +CREATE TABLE `test_ag`.`attackentyp` ( + `id` INTEGER NOT NULL AUTO_INCREMENT, + `name` VARCHAR(256) NOT NULL, + `anzahl` INTEGER NOT NULL DEFAULT 1, + `farbe` VARCHAR(32) DEFAULT 'white', + `kategorie` INTEGER, + PRIMARY KEY (`id`) +) ENGINE = InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + -- -- Definition of table `auktion` --