nickname auf 20 zeichen beschränkt, rename für radi möglich^^

main
elfenland 10 years ago
parent 2fcc716667
commit 2c6f2fae5a

@ -1563,7 +1563,7 @@ CREATE TABLE `umsatz` (
DROP TABLE IF EXISTS `user`; DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` ( CREATE TABLE `user` (
`nickname` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `nickname` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`passwort` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `passwort` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`mail` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `mail` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`homepage` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `homepage` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
@ -1709,8 +1709,8 @@ DROP TABLE IF EXISTS `user_rename`;
CREATE TABLE `user_rename` ( CREATE TABLE `user_rename` (
`userid` int(11) NOT NULL, `userid` int(11) NOT NULL,
`datum` date NOT NULL, `datum` date NOT NULL,
`pre_name` varchar(40) COLLATE utf8_unicode_ci NOT NULL, `pre_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`post_name` varchar(40) COLLATE utf8_unicode_ci NOT NULL, `post_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`wunsch` tinyint(4) NOT NULL DEFAULT '0', `wunsch` tinyint(4) NOT NULL DEFAULT '0',
PRIMARY KEY (`userid`,`datum`), PRIMARY KEY (`userid`,`datum`),
CONSTRAINT `fk_user_rename_userid` FOREIGN KEY (`userid`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE CONSTRAINT `fk_user_rename_userid` FOREIGN KEY (`userid`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE

Loading…
Cancel
Save