Prox Plox
New Member
- Joined
- Mar 26, 2016
- Messages
- 66
- Reaction score
- 0
Hello!
When I try to create the database tables for Znote, this happens:
The error that appears after I click go:
Code:
Error
SQL query:
CREATE TABLE IF NOT EXISTS `znote_guild_wars` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`limit` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
FOREIGN KEY (`id`) REFERENCES `guild_wars` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1
MySQL said: Documentation
#1215 - Cannot add foreign key constraint
What should I do here?
appreciate help!