Browse Source

Fixes Specified key was too long; max key length is 1000 bytes #156 and #93 by changing field lengths to less than 255 or 195

pull/40/head
Benjamin Southall 3 years ago
parent
commit
309c4db302
  1. 12
      install.sql

12
install.sql

@ -305,10 +305,10 @@ CREATE TABLE IF NOT EXISTS `ban_appeals` (
CREATE TABLE `pages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`board` varchar(195) DEFAULT NULL,
`name` varchar(195) NOT NULL,
`title` varchar(255) DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
`board` varchar(150) DEFAULT NULL,
`name` varchar(150) NOT NULL,
`title` varchar(150) DEFAULT NULL,
`type` varchar(150) DEFAULT NULL,
`content` text,
PRIMARY KEY (`id`),
UNIQUE KEY `u_pages` (`name`,`board`)
@ -323,7 +323,7 @@ CREATE TABLE `pages` (
CREATE TABLE `nntp_references` (
`board` varchar(60) NOT NULL,
`id` int(11) unsigned NOT NULL,
`message_id` varchar(255) CHARACTER SET ascii NOT NULL,
`message_id` varchar(190) CHARACTER SET ascii NOT NULL,
`message_id_digest` varchar(40) CHARACTER SET ascii NOT NULL,
`own` tinyint(1) NOT NULL,
`headers` text,
@ -335,7 +335,7 @@ CREATE TABLE `nntp_references` (
CREATE TABLE IF NOT EXISTS `calendar_events` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
`title` varchar(190) NOT NULL,
`description` text NOT NULL,
`start` datetime NOT NULL,
`end` datetime NOT NULL,

Loading…
Cancel
Save