diff --git a/install.sql b/install.sql index 1acc849f..26d21edc 100644 --- a/install.sql +++ b/install.sql @@ -303,7 +303,7 @@ CREATE TABLE IF NOT EXISTS `ban_appeals` ( -- Table structure for table `pages` -- -CREATE TABLE `pages` ( +CREATE TABLE IF NOT EXISTS `pages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `board` varchar(58) CHARACTER SET utf8 DEFAULT NULL, `name` varchar(255) CHARACTER SET utf8 NOT NULL, @@ -320,7 +320,7 @@ CREATE TABLE `pages` ( -- Table structure for table `nntp_references` -- -CREATE TABLE `nntp_references` ( +CREATE TABLE IF NOT EXISTS `nntp_references` ( `board` varchar(30) NOT NULL, `id` int(11) unsigned NOT NULL, `message_id` varchar(255) CHARACTER SET ascii NOT NULL, @@ -332,6 +332,20 @@ CREATE TABLE `nntp_references` ( UNIQUE KEY `u_board_id` (`board`, `id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4; +-- -------------------------------------------------------- + +-- +-- Table structure for table `captchas` +-- + +CREATE TABLE IF NOT EXISTS `captchas` ( + `cookie` VARCHAR(50), + `extra` VARCHAR(200), + `text` VARCHAR(255), + `created_at` INT(11), + PRIMARY KEY (cookie, extra) +) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4; + /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;