From 98bf55ab2cb1cca6e6d47f85ef6e719eec0a1e45 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Mon, 5 Dec 2011 18:10:20 +1100 Subject: [PATCH] use posts.sql for default /b/ posting table --- install.php | 2 ++ install.sql | 40 +--------------------------------------- 2 files changed, 3 insertions(+), 39 deletions(-) diff --git a/install.php b/install.php index 50c80301..ee51831d 100644 --- a/install.php +++ b/install.php @@ -478,6 +478,8 @@ preg_match_all("/(^|\n)((SET|CREATE|INSERT).+)\n\n/msU", $sql, $queries); $queries = $queries[2]; + $queries[] = Element('posts.sql', Array('board' => 'b')); + $sql_errors = ''; foreach($queries as &$query) { if(!query($query)) diff --git a/install.sql b/install.sql index de6cc0c8..8837e78d 100644 --- a/install.sql +++ b/install.sql @@ -175,45 +175,6 @@ CREATE TABLE IF NOT EXISTS `pms` ( -- -------------------------------------------------------- --- --- Table structure for table `posts_b` --- - -CREATE TABLE IF NOT EXISTS `posts_b` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `thread` int(11) DEFAULT NULL, - `subject` varchar(100) DEFAULT NULL, - `email` varchar(30) DEFAULT NULL, - `name` varchar(35) DEFAULT NULL, - `trip` varchar(15) DEFAULT NULL, - `capcode` varchar(50) DEFAULT NULL, - `body` text NOT NULL, - `body_nomarkup` text DEFAULT NULL, - `time` int(11) NOT NULL, - `bump` int(11) DEFAULT NULL, - `thumb` varchar(50) DEFAULT NULL, - `thumbwidth` int(11) DEFAULT NULL, - `thumbheight` int(11) DEFAULT NULL, - `file` varchar(50) DEFAULT NULL, - `filewidth` int(11) DEFAULT NULL, - `fileheight` int(11) DEFAULT NULL, - `filesize` int(11) DEFAULT NULL, - `filename` text, - `filehash` text, - `password` varchar(20) DEFAULT NULL, - `ip` varchar(45) NOT NULL, - `sticky` int(1) NOT NULL, - `locked` int(1) NOT NULL, - `sage` int(1) NOT NULL, - `embed` text, - UNIQUE KEY `id` (`id`), - KEY `thread` (`thread`), - KEY `time` (`time`), - FULLTEXT KEY `body` (`body`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; - --- -------------------------------------------------------- - -- -- Table structure for table `reports` -- @@ -267,6 +228,7 @@ CREATE TABLE IF NOT EXISTS `cites` ( KEY `post` (`board`,`post`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; + /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;