2017-10-14 07:39:22 +00:00
INSERT INTO [ sync ] ( [ last_update ] ) VALUES ( GETUTCDATE ( ) ) ;
INSERT INTO [ settings ] ( [ name ] , [ content ] , [ type ] , [ constraints ] ) VALUES ( ' activation_type ' , ' 1 ' , ' list ' , ' 1-3 ' ) ;
INSERT INTO [ settings ] ( [ name ] , [ content ] , [ type ] ) VALUES ( ' bigpost_min_words ' , ' 250 ' , ' int ' ) ;
INSERT INTO [ settings ] ( [ name ] , [ content ] , [ type ] ) VALUES ( ' megapost_min_words ' , ' 1000 ' , ' int ' ) ;
2017-12-25 06:12:19 +00:00
INSERT INTO [ settings ] ( [ name ] , [ content ] , [ type ] ) VALUES ( ' meta_desc ' , ' ' , ' html-attribute ' ) ;
2018-07-13 11:27:58 +00:00
INSERT INTO [ settings ] ( [ name ] , [ content ] , [ type ] ) VALUES ( ' rapid_loading ' , ' 1 ' , ' bool ' ) ;
2019-02-28 07:28:17 +00:00
INSERT INTO [ settings ] ( [ name ] , [ content ] , [ type ] ) VALUES ( ' google_site_verify ' , ' ' , ' html-attribute ' ) ;
2018-03-17 08:16:43 +00:00
INSERT INTO [ themes ] ( [ uname ] , [ default ] ) VALUES ( ' cosora ' , 1 ) ;
2017-10-14 07:39:22 +00:00
INSERT INTO [ emails ] ( [ email ] , [ uid ] , [ validated ] ) VALUES ( ' admin@localhost ' , 1 , 1 ) ;
2019-10-06 05:32:08 +00:00
INSERT INTO [ users_groups ] ( [ name ] , [ permissions ] , [ plugin_perms ] , [ is_mod ] , [ is_admin ] , [ is_banned ] , [ tag ] ) VALUES ( ' Administrator ' , ' {"BanUsers":true,"ActivateUsers":true,"EditUser":true,"EditUserEmail":true,"EditUserPassword":true,"EditUserGroup":true,"EditUserGroupSuperMod":true,"EditGroup":true,"EditGroupLocalPerms":true,"EditGroupGlobalPerms":true,"EditGroupSuperMod":true,"ManageForums":true,"EditSettings":true,"ManageThemes":true,"ManagePlugins":true,"ViewAdminLogs":true,"ViewIPs":true,"UploadFiles":true,"UploadAvatars":true,"UseConvos":true,"ViewTopic":true,"LikeItem":true,"CreateTopic":true,"EditTopic":true,"DeleteTopic":true,"CreateReply":true,"EditReply":true,"DeleteReply":true,"PinTopic":true,"CloseTopic":true,"MoveTopic":true} ' , ' {} ' , 1 , 1 , 0 , ' Admin ' ) ;
INSERT INTO [ users_groups ] ( [ name ] , [ permissions ] , [ plugin_perms ] , [ is_mod ] , [ is_admin ] , [ is_banned ] , [ tag ] ) VALUES ( ' Moderator ' , ' {"BanUsers":true,"ActivateUsers":true,"EditUser":true,"EditUserGroup":true,"ViewIPs":true,"UploadFiles":true,"UploadAvatars":true,"UseConvos":true,"ViewTopic":true,"LikeItem":true,"CreateTopic":true,"EditTopic":true,"DeleteTopic":true,"CreateReply":true,"EditReply":true,"DeleteReply":true,"PinTopic":true,"CloseTopic":true,"MoveTopic":true} ' , ' {} ' , 1 , 0 , 0 , ' Mod ' ) ;
INSERT INTO [ users_groups ] ( [ name ] , [ permissions ] , [ plugin_perms ] , [ is_mod ] , [ is_admin ] , [ is_banned ] , [ tag ] ) VALUES ( ' Member ' , ' {"UploadFiles":true,"UploadAvatars":true,"UseConvos":true,"ViewTopic":true,"LikeItem":true,"CreateTopic":true,"CreateReply":true} ' , ' {} ' , 0 , 0 , 0 , " " ) ;
INSERT INTO [ users_groups ] ( [ name ] , [ permissions ] , [ plugin_perms ] , [ is_mod ] , [ is_admin ] , [ is_banned ] , [ tag ] ) VALUES ( ' Banned ' , ' {"ViewTopic":true} ' , ' {} ' , 0 , 0 , 1 , " " ) ;
INSERT INTO [ users_groups ] ( [ name ] , [ permissions ] , [ plugin_perms ] , [ is_mod ] , [ is_admin ] , [ is_banned ] , [ tag ] ) VALUES ( ' Awaiting Activation ' , ' {"ViewTopic":true} ' , ' {} ' , 0 , 0 , 0 , " " ) ;
INSERT INTO [ users_groups ] ( [ name ] , [ permissions ] , [ plugin_perms ] , [ is_mod ] , [ is_admin ] , [ is_banned ] , [ tag ] ) VALUES ( ' Not Loggedin ' , ' {"ViewTopic":true} ' , ' {} ' , 0 , 0 , 0 , ' Guest ' ) ;
2019-05-28 00:47:30 +00:00
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 ' , ' ' ) ;
2017-10-14 07:39:22 +00:00
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 , ' {} ' ) ;
INSERT INTO [ forums_permissions ] ( [ gid ] , [ fid ] , [ permissions ] ) VALUES ( 4 , 1 , ' {} ' ) ;
INSERT INTO [ forums_permissions ] ( [ gid ] , [ fid ] , [ permissions ] ) VALUES ( 5 , 1 , ' {} ' ) ;
INSERT INTO [ forums_permissions ] ( [ gid ] , [ fid ] , [ permissions ] ) VALUES ( 6 , 1 , ' {} ' ) ;
2018-01-15 08:24:18 +00:00
INSERT INTO [ forums_permissions ] ( [ gid ] , [ fid ] , [ permissions ] ) VALUES ( 1 , 2 , ' {"ViewTopic":true,"CreateReply":true,"CreateTopic":true,"LikeItem":true,"EditTopic":true,"DeleteTopic":true,"EditReply":true,"DeleteReply":true,"PinTopic":true,"CloseTopic":true,"MoveTopic":true} ' ) ;
INSERT INTO [ forums_permissions ] ( [ gid ] , [ fid ] , [ permissions ] ) VALUES ( 2 , 2 , ' {"ViewTopic":true,"CreateReply":true,"CreateTopic":true,"LikeItem":true,"EditTopic":true,"DeleteTopic":true,"EditReply":true,"DeleteReply":true,"PinTopic":true,"CloseTopic":true,"MoveTopic":true} ' ) ;
2017-10-14 07:39:22 +00:00
INSERT INTO [ forums_permissions ] ( [ gid ] , [ fid ] , [ permissions ] ) VALUES ( 3 , 2 , ' {"ViewTopic":true,"CreateReply":true,"CreateTopic":true,"LikeItem":true} ' ) ;
INSERT INTO [ forums_permissions ] ( [ gid ] , [ fid ] , [ permissions ] ) VALUES ( 4 , 2 , ' {"ViewTopic":true} ' ) ;
INSERT INTO [ forums_permissions ] ( [ gid ] , [ fid ] , [ permissions ] ) VALUES ( 5 , 2 , ' {"ViewTopic":true} ' ) ;
INSERT INTO [ forums_permissions ] ( [ gid ] , [ fid ] , [ permissions ] ) VALUES ( 6 , 2 , ' {"ViewTopic":true} ' ) ;
Cascade delete attachments properly.
Cascade delete replied to topic events for replies properly.
Cascade delete likes on topic posts properly.
Cascade delete replies and their children properly.
Recalculate user stats properly when items are deleted.
Users can now unlike topic opening posts.
Add a recalculator to fix abnormalities across upgrades.
Try fixing a last_ip daily update bug.
Add Existable interface.
Add Delete method to LikeStore.
Add Each, Exists, Create, CountUser, CountMegaUser and CountBigUser methods to ReplyStore.
Add CountUser, CountMegaUser, CountBigUser methods to TopicStore.
Add Each method to UserStore.
Add Add, Delete and DeleteResource methods to SubscriptionStore.
Add Delete, DeleteByParams, DeleteByParamsExtra and AidsByParamsExtra methods to ActivityStream.
Add Exists method to ProfileReplyStore.
Add DropColumn, RenameColumn and ChangeColumn to the database adapters.
Shorten ipaddress column names to ip.
- topics table.
- replies table
- users_replies table.
- polls_votes table.
Add extra column to activity_stream table.
Fix an issue upgrading sites to MariaDB 10.3 from older versions of Gosora. Please report any other issues you find.
You need to run the updater / patcher for this commit.
2020-01-31 07:22:08 +00:00
INSERT INTO [ topics ] ( [ title ] , [ content ] , [ parsed_content ] , [ createdAt ] , [ lastReplyAt ] , [ lastReplyBy ] , [ createdBy ] , [ parentID ] , [ ip ] ) VALUES ( ' Test Topic ' , ' A topic automatically generated by the software. ' , ' A topic automatically generated by the software. ' , GETUTCDATE ( ) , GETUTCDATE ( ) , 1 , 1 , 2 , ' ::1 ' ) ;
INSERT INTO [ replies ] ( [ tid ] , [ content ] , [ parsed_content ] , [ createdAt ] , [ createdBy ] , [ lastUpdated ] , [ lastEdit ] , [ lastEditBy ] , [ ip ] ) VALUES ( 1 , ' A reply! ' , ' A reply! ' , GETUTCDATE ( ) , 1 , GETUTCDATE ( ) , 0 , 0 , ' ::1 ' ) ;
2018-04-23 21:08:31 +00:00
INSERT INTO [ menus ] ( ) VALUES ( ) ;
2018-05-11 05:41:51 +00:00
INSERT INTO [ menu_items ] ( [ mid ] , [ name ] , [ htmlID ] , [ position ] , [ path ] , [ aria ] , [ tooltip ] , [ order ] ) VALUES ( 1 , ' {lang.menu_forums} ' , ' menu_forums ' , ' left ' , ' /forums/ ' , ' {lang.menu_forums_aria} ' , ' {lang.menu_forums_tooltip} ' , 0 ) ;
INSERT INTO [ menu_items ] ( [ mid ] , [ name ] , [ htmlID ] , [ cssClass ] , [ position ] , [ path ] , [ aria ] , [ tooltip ] , [ order ] ) VALUES ( 1 , ' {lang.menu_topics} ' , ' menu_topics ' , ' menu_topics ' , ' left ' , ' /topics/ ' , ' {lang.menu_topics_aria} ' , ' {lang.menu_topics_tooltip} ' , 1 ) ;
2018-04-22 12:33:56 +00:00
INSERT INTO [ menu_items ] ( [ mid ] , [ htmlID ] , [ cssClass ] , [ position ] , [ tmplName ] , [ order ] ) VALUES ( 1 , ' general_alerts ' , ' menu_alerts ' , ' right ' , ' menu_alerts ' , 2 ) ;
2018-06-17 07:28:18 +00:00
INSERT INTO [ menu_items ] ( [ mid ] , [ name ] , [ cssClass ] , [ position ] , [ path ] , [ aria ] , [ tooltip ] , [ memberOnly ] , [ order ] ) VALUES ( 1 , ' {lang.menu_account} ' , ' menu_account ' , ' left ' , ' /user/edit/ ' , ' {lang.menu_account_aria} ' , ' {lang.menu_account_tooltip} ' , 1 , 3 ) ;
2018-05-11 05:41:51 +00:00
INSERT INTO [ menu_items ] ( [ mid ] , [ name ] , [ cssClass ] , [ position ] , [ path ] , [ aria ] , [ tooltip ] , [ memberOnly ] , [ order ] ) VALUES ( 1 , ' {lang.menu_profile} ' , ' menu_profile ' , ' left ' , ' {me.Link} ' , ' {lang.menu_profile_aria} ' , ' {lang.menu_profile_tooltip} ' , 1 , 4 ) ;
INSERT INTO [ menu_items ] ( [ mid ] , [ name ] , [ cssClass ] , [ position ] , [ path ] , [ aria ] , [ tooltip ] , [ memberOnly ] , [ staffOnly ] , [ order ] ) VALUES ( 1 , ' {lang.menu_panel} ' , ' menu_panel menu_account ' , ' left ' , ' /panel/ ' , ' {lang.menu_panel_aria} ' , ' {lang.menu_panel_tooltip} ' , 1 , 1 , 5 ) ;
2019-10-06 00:34:09 +00:00
INSERT INTO [ menu_items ] ( [ mid ] , [ name ] , [ cssClass ] , [ position ] , [ path ] , [ aria ] , [ tooltip ] , [ memberOnly ] , [ order ] ) VALUES ( 1 , ' {lang.menu_logout} ' , ' menu_logout ' , ' left ' , ' /accounts/logout/?s={me.Session} ' , ' {lang.menu_logout_aria} ' , ' {lang.menu_logout_tooltip} ' , 1 , 6 ) ;
2018-05-11 05:41:51 +00:00
INSERT INTO [ menu_items ] ( [ mid ] , [ name ] , [ cssClass ] , [ position ] , [ path ] , [ aria ] , [ tooltip ] , [ guestOnly ] , [ order ] ) VALUES ( 1 , ' {lang.menu_register} ' , ' menu_register ' , ' left ' , ' /accounts/create/ ' , ' {lang.menu_register_aria} ' , ' {lang.menu_register_tooltip} ' , 1 , 7 ) ;
INSERT INTO [ menu_items ] ( [ mid ] , [ name ] , [ cssClass ] , [ position ] , [ path ] , [ aria ] , [ tooltip ] , [ guestOnly ] , [ order ] ) VALUES ( 1 , ' {lang.menu_login} ' , ' menu_login ' , ' left ' , ' /accounts/login/ ' , ' {lang.menu_login_aria} ' , ' {lang.menu_login_tooltip} ' , 1 , 8 ) ;