diff --git a/schema/mssql/query_topics.sql b/schema/mssql/query_topics.sql index d0455fda..fec0b0b6 100644 --- a/schema/mssql/query_topics.sql +++ b/schema/mssql/query_topics.sql @@ -6,6 +6,7 @@ CREATE TABLE [topics] ( [createdAt] datetime not null, [lastReplyAt] datetime not null, [lastReplyBy] int not null, + [lastReplyID] int DEFAULT 0 not null, [createdBy] int not null, [is_closed] bit DEFAULT 0 not null, [sticky] bit DEFAULT 0 not null, @@ -13,6 +14,7 @@ CREATE TABLE [topics] ( [ipaddress] nvarchar (200) DEFAULT '0.0.0.0.0' not null, [postCount] int DEFAULT 1 not null, [likeCount] int DEFAULT 0 not null, + [attachCount] int DEFAULT 0 not null, [words] int DEFAULT 0 not null, [views] int DEFAULT 0 not null, [css_class] nvarchar (100) DEFAULT '' not null, diff --git a/schema/mysql/query_topics.sql b/schema/mysql/query_topics.sql index 10f2a89d..3110996b 100644 --- a/schema/mysql/query_topics.sql +++ b/schema/mysql/query_topics.sql @@ -6,6 +6,7 @@ CREATE TABLE `topics` ( `createdAt` datetime not null, `lastReplyAt` datetime not null, `lastReplyBy` int not null, + `lastReplyID` int DEFAULT 0 not null, `createdBy` int not null, `is_closed` boolean DEFAULT 0 not null, `sticky` boolean DEFAULT 0 not null, @@ -13,6 +14,7 @@ CREATE TABLE `topics` ( `ipaddress` varchar(200) DEFAULT '0.0.0.0.0' not null, `postCount` int DEFAULT 1 not null, `likeCount` int DEFAULT 0 not null, + `attachCount` int DEFAULT 0 not null, `words` int DEFAULT 0 not null, `views` int DEFAULT 0 not null, `css_class` varchar(100) DEFAULT '' not null, diff --git a/schema/pgsql/query_topics.sql b/schema/pgsql/query_topics.sql index 2f48b175..2b82c054 100644 --- a/schema/pgsql/query_topics.sql +++ b/schema/pgsql/query_topics.sql @@ -6,6 +6,7 @@ CREATE TABLE "topics" ( `createdAt` timestamp not null, `lastReplyAt` timestamp not null, `lastReplyBy` int not null, + `lastReplyID` int DEFAULT 0 not null, `createdBy` int not null, `is_closed` boolean DEFAULT 0 not null, `sticky` boolean DEFAULT 0 not null, @@ -13,6 +14,7 @@ CREATE TABLE "topics" ( `ipaddress` varchar (200) DEFAULT '0.0.0.0.0' not null, `postCount` int DEFAULT 1 not null, `likeCount` int DEFAULT 0 not null, + `attachCount` int DEFAULT 0 not null, `words` int DEFAULT 0 not null, `views` int DEFAULT 0 not null, `css_class` varchar (100) DEFAULT '' not null,