vorbereitung für #139
main
radiskull 10 years ago
parent 1b9c9e3228
commit e13dcd8b74

@ -126,7 +126,6 @@ CREATE TABLE `attackenset` (
`round` int(2) NOT NULL, `round` int(2) NOT NULL,
PRIMARY KEY (`char_ID`,`type`,`round`), PRIMARY KEY (`char_ID`,`type`,`round`),
KEY `attackenset_attack_id` (`attack_id`), 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 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; ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
@ -140,6 +139,20 @@ UNLOCK TABLES;
/*!40000 ALTER TABLE `attackenset` ENABLE KEYS */; /*!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` -- Definition of table `auktion`
-- --

Loading…
Cancel
Save