mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-11 07:16:10 +01:00
This commit is contained in:
commit
cad761042d
31
install.sql
31
install.sql
@ -70,6 +70,7 @@ CREATE TABLE IF NOT EXISTS `boards` (
|
||||
`public_logs` tinyint(1) default 0,
|
||||
`8archive` boolean default false,
|
||||
`sfw` boolean default false,
|
||||
`posts_total` INT(11) UNSIGNED NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`uri`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
@ -308,7 +309,7 @@ CREATE TABLE IF NOT EXISTS `ban_appeals` (
|
||||
-- Table structure for table `post_clean`
|
||||
--
|
||||
|
||||
CREATE TABLE `post_clean` (
|
||||
CREATE TABLE IF NOT EXISTS `post_clean` (
|
||||
`clean_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`post_id` int(11) unsigned NOT NULL,
|
||||
`board_id` varchar(58) NOT NULL,
|
||||
@ -326,7 +327,7 @@ CREATE TABLE `post_clean` (
|
||||
-- Table structure for table `board_tags`
|
||||
--
|
||||
|
||||
CREATE TABLE `board_tags` (
|
||||
CREATE TABLE IF NOT EXISTS `board_tags` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`uri` varchar(30) DEFAULT NULL,
|
||||
`tag` varchar(255) DEFAULT NULL,
|
||||
@ -339,7 +340,7 @@ CREATE TABLE `board_tags` (
|
||||
-- Table structure for table `tor_cookies`
|
||||
--
|
||||
|
||||
CREATE TABLE `tor_cookies` (
|
||||
CREATE TABLE IF NOT EXISTS `tor_cookies` (
|
||||
`cookie` varchar(255) NOT NULL,
|
||||
`created` datetime NOT NULL,
|
||||
`uses` tinyint(3) unsigned DEFAULT '0',
|
||||
@ -352,7 +353,7 @@ CREATE TABLE `tor_cookies` (
|
||||
-- Table structure for table `dnsbl_bypass`
|
||||
--
|
||||
|
||||
CREATE TABLE `dnsbl_bypass` (
|
||||
CREATE TABLE IF NOT EXISTS `dnsbl_bypass` (
|
||||
`ip` varchar(255) NOT NULL,
|
||||
`created` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`ip`)
|
||||
@ -364,7 +365,7 @@ CREATE TABLE `dnsbl_bypass` (
|
||||
-- Table structure for table `filters`
|
||||
--
|
||||
|
||||
CREATE TABLE `filters` (
|
||||
CREATE TABLE IF NOT EXISTS `filters` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`type` varchar(255) DEFAULT NULL,
|
||||
`reason` text,
|
||||
@ -379,7 +380,7 @@ CREATE TABLE `filters` (
|
||||
-- Table structure for table `pages`
|
||||
--
|
||||
|
||||
CREATE TABLE `pages` (
|
||||
CREATE TABLE IF NOT EXISTS `pages` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`board` varchar(255) DEFAULT NULL,
|
||||
`name` varchar(255) NOT NULL,
|
||||
@ -390,6 +391,24 @@ CREATE TABLE `pages` (
|
||||
UNIQUE KEY `u_pages` (`name`,`board`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for `board_stts`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `board_stats` (
|
||||
`stat_uri` VARCHAR(58) NOT NULL,
|
||||
`stat_hour` INT(11) UNSIGNED NOT NULL,
|
||||
`post_count` INT(11) UNSIGNED NULL,
|
||||
`post_id_array` TEXT NULL,
|
||||
`author_ip_count` INT(11) UNSIGNED NULL,
|
||||
`author_ip_array` TEXT NULL,
|
||||
PRIMARY KEY (`stat_uri`, `stat_hour`)
|
||||
) ENGINE=InnoDB 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 */;
|
Loading…
Reference in New Issue
Block a user