Zitat
An unexpected error occurred:
MySQL Error: Field 'sort' doesn't have a default value
in Query[SubQuery 5]: CREATE TABLE IF NOT EXISTS `ilch_articles` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`cat_id` VARCHAR(255) NOT NULL,
`date_created` DATETIME NOT NULL,
`top` TINYINT(1) NOT NULL DEFAULT 0,
`read_access` VARCHAR(255) NOT NULL DEFAULT '1,2,3',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `ilch_articles_cats` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`name` VARCHAR(100) NOT NULL,
`sort` INT(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `ilch_articles_content` (
`article_id` INT(11) NOT NULL,
`author_id` INT(11) NOT NULL,
`visits` INT(11) NOT NULL DEFAULT 0,
`content` MEDIUMTEXT NOT NULL,
`description` MEDIUMTEXT NOT NULL,
`keywords` VARCHAR(255) NOT NULL,
`locale` VARCHAR(255) NOT NULL,
`title` VARCHAR(255) NOT NULL,
`teaser` VARCHAR(255) NOT NULL,
`perma` VARCHAR(255) NOT NULL,
`img` VARCHAR(255) NOT NULL,
`img_source` VARCHAR(255) NOT NULL,
`votes` LONGTEXT NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
INSERT INTO `ilch_articles` (`cat_id`, `date_created`, `top`) VALUES (1, now(), 0);
INSERT INTO `ilch_articles_cats` (`name`) VALUES ("Allgemein");
INSERT INTO `ilch_articles_content` (`article_id`, `author_id`, `title`, `teaser`, `content`, `keywords`, `perma`) VALUES
(1, 1, "Willkommen", "Willkommen beim Ilch CMS!", "
Dies ist dein erster Artikel mit dem Ilch - Content Management System
Bei Fragen oder Probleme im Ilch Forum melden.
Viel Erfolg
Ilch
", "willkommen, ilch, cms, news", "willkommen.html");