From da86280e1e1719219f3873b5d59c1132d3c5dc9e Mon Sep 17 00:00:00 2001 From: Azareal Date: Tue, 28 May 2019 10:47:30 +1000 Subject: [PATCH] bleh schema --- schema/mssql/inserts.sql | 4 ++-- schema/mssql/query_forums.sql | 2 +- schema/mysql/inserts.sql | 4 ++-- schema/mysql/query_forums.sql | 2 +- schema/pgsql/inserts.sql | 4 ++-- schema/pgsql/query_forums.sql | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/schema/mssql/inserts.sql b/schema/mssql/inserts.sql index aabb5155..b70fa428 100644 --- a/schema/mssql/inserts.sql +++ b/schema/mssql/inserts.sql @@ -13,8 +13,8 @@ INSERT INTO [users_groups] ([name],[permissions],[plugin_perms]) VALUES ('Member INSERT INTO [users_groups] ([name],[permissions],[plugin_perms],[is_banned]) VALUES ('Banned','{"ViewTopic":true}','{}',1); INSERT INTO [users_groups] ([name],[permissions],[plugin_perms]) VALUES ('Awaiting Activation','{"ViewTopic":true}','{}'); INSERT INTO [users_groups] ([name],[permissions],[plugin_perms],[tag]) VALUES ('Not Loggedin','{"ViewTopic":true}','{}','Guest'); -INSERT INTO [forums] ([name],[active],[desc]) VALUES ('Reports',0,'All the reports go here'); -INSERT INTO [forums] ([name],[lastTopicID],[lastReplyerID],[desc]) VALUES ('General',1,1,'A place for general discussions which don''t fit elsewhere'); +INSERT INTO [forums] ([name],[active],[desc],[tmpl]) VALUES ('Reports',0,'All the reports go here',''); +INSERT INTO [forums] ([name],[lastTopicID],[lastReplyerID],[desc],[tmpl]) VALUES ('General',1,1,'A place for general discussions which don''t fit elsewhere',''); INSERT INTO [forums_permissions] ([gid],[fid],[permissions]) VALUES (1,1,'{"ViewTopic":true,"CreateReply":true,"CreateTopic":true,"PinTopic":true,"CloseTopic":true}'); INSERT INTO [forums_permissions] ([gid],[fid],[permissions]) VALUES (2,1,'{"ViewTopic":true,"CreateReply":true,"CloseTopic":true}'); INSERT INTO [forums_permissions] ([gid],[fid],[permissions]) VALUES (3,1,'{}'); diff --git a/schema/mssql/query_forums.sql b/schema/mssql/query_forums.sql index 47d5ed1a..35ee3368 100644 --- a/schema/mssql/query_forums.sql +++ b/schema/mssql/query_forums.sql @@ -2,7 +2,7 @@ CREATE TABLE [forums] ( [fid] int not null IDENTITY, [name] nvarchar (100) not null, [desc] nvarchar (200) not null, - [tmpl] nvarchar (200) not null, + [tmpl] nvarchar (200) DEFAULT '' not null, [active] bit DEFAULT 1 not null, [order] int DEFAULT 0 not null, [topicCount] int DEFAULT 0 not null, diff --git a/schema/mysql/inserts.sql b/schema/mysql/inserts.sql index 946467bb..03ca48d6 100644 --- a/schema/mysql/inserts.sql +++ b/schema/mysql/inserts.sql @@ -21,8 +21,8 @@ INSERT INTO `users_groups`(`name`,`permissions`,`plugin_perms`) VALUES ('Member' INSERT INTO `users_groups`(`name`,`permissions`,`plugin_perms`,`is_banned`) VALUES ('Banned','{"ViewTopic":true}','{}',1); INSERT INTO `users_groups`(`name`,`permissions`,`plugin_perms`) VALUES ('Awaiting Activation','{"ViewTopic":true}','{}'); INSERT INTO `users_groups`(`name`,`permissions`,`plugin_perms`,`tag`) VALUES ('Not Loggedin','{"ViewTopic":true}','{}','Guest'); -INSERT INTO `forums`(`name`,`active`,`desc`) VALUES ('Reports',0,'All the reports go here'); -INSERT INTO `forums`(`name`,`lastTopicID`,`lastReplyerID`,`desc`) VALUES ('General',1,1,'A place for general discussions which don''t fit elsewhere'); +INSERT INTO `forums`(`name`,`active`,`desc`,`tmpl`) VALUES ('Reports',0,'All the reports go here',''); +INSERT INTO `forums`(`name`,`lastTopicID`,`lastReplyerID`,`desc`,`tmpl`) VALUES ('General',1,1,'A place for general discussions which don''t fit elsewhere',''); INSERT INTO `forums_permissions`(`gid`,`fid`,`permissions`) VALUES (1,1,'{"ViewTopic":true,"CreateReply":true,"CreateTopic":true,"PinTopic":true,"CloseTopic":true}'); INSERT INTO `forums_permissions`(`gid`,`fid`,`permissions`) VALUES (2,1,'{"ViewTopic":true,"CreateReply":true,"CloseTopic":true}'); INSERT INTO `forums_permissions`(`gid`,`fid`,`permissions`) VALUES (3,1,'{}'); diff --git a/schema/mysql/query_forums.sql b/schema/mysql/query_forums.sql index 0c7af8fb..31e6da99 100644 --- a/schema/mysql/query_forums.sql +++ b/schema/mysql/query_forums.sql @@ -2,7 +2,7 @@ CREATE TABLE `forums` ( `fid` int not null AUTO_INCREMENT, `name` varchar(100) not null, `desc` varchar(200) not null, - `tmpl` varchar(200) not null, + `tmpl` varchar(200) DEFAULT '' not null, `active` boolean DEFAULT 1 not null, `order` int DEFAULT 0 not null, `topicCount` int DEFAULT 0 not null, diff --git a/schema/pgsql/inserts.sql b/schema/pgsql/inserts.sql index 6819cfd0..3f3bf0ca 100644 --- a/schema/pgsql/inserts.sql +++ b/schema/pgsql/inserts.sql @@ -13,8 +13,8 @@ INSERT INTO "users_groups"("name","permissions","plugin_perms") VALUES ('Member' INSERT INTO "users_groups"("name","permissions","plugin_perms","is_banned") VALUES ('Banned','{"ViewTopic":true}','{}',1); INSERT INTO "users_groups"("name","permissions","plugin_perms") VALUES ('Awaiting Activation','{"ViewTopic":true}','{}'); INSERT INTO "users_groups"("name","permissions","plugin_perms","tag") VALUES ('Not Loggedin','{"ViewTopic":true}','{}','Guest'); -INSERT INTO "forums"("name","active","desc") VALUES ('Reports',0,'All the reports go here'); -INSERT INTO "forums"("name","lastTopicID","lastReplyerID","desc") VALUES ('General',1,1,'A place for general discussions which don''t fit elsewhere'); +INSERT INTO "forums"("name","active","desc","tmpl") VALUES ('Reports',0,'All the reports go here',''); +INSERT INTO "forums"("name","lastTopicID","lastReplyerID","desc","tmpl") VALUES ('General',1,1,'A place for general discussions which don''t fit elsewhere',''); INSERT INTO "forums_permissions"("gid","fid","permissions") VALUES (1,1,'{"ViewTopic":true,"CreateReply":true,"CreateTopic":true,"PinTopic":true,"CloseTopic":true}'); INSERT INTO "forums_permissions"("gid","fid","permissions") VALUES (2,1,'{"ViewTopic":true,"CreateReply":true,"CloseTopic":true}'); INSERT INTO "forums_permissions"("gid","fid","permissions") VALUES (3,1,'{}'); diff --git a/schema/pgsql/query_forums.sql b/schema/pgsql/query_forums.sql index 8f59d6ec..79bba822 100644 --- a/schema/pgsql/query_forums.sql +++ b/schema/pgsql/query_forums.sql @@ -2,7 +2,7 @@ CREATE TABLE "forums" ( `fid` serial not null, `name` varchar (100) not null, `desc` varchar (200) not null, - `tmpl` varchar (200) not null, + `tmpl` varchar (200) DEFAULT '' not null, `active` boolean DEFAULT 1 not null, `order` int DEFAULT 0 not null, `topicCount` int DEFAULT 0 not null,