github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/schema/mysql/inserts.sql (about) 1 ALTER TABLE `topics` ADD INDEX `i_parentID` (`parentID`);; 2 ALTER TABLE `replies` ADD INDEX `i_tid` (`tid`);; 3 ALTER TABLE `polls` ADD INDEX `i_parentID` (`parentID`);; 4 ALTER TABLE `likes` ADD INDEX `i_targetItem` (`targetItem`);; 5 ALTER TABLE `emails` ADD INDEX `i_uid` (`uid`);; 6 ALTER TABLE `attachments` ADD INDEX `i_originID` (`originID`);; 7 ALTER TABLE `attachments` ADD INDEX `i_path` (`path`);; 8 ALTER TABLE `activity_stream_matches` ADD INDEX `i_watcher` (`watcher`);; 9 INSERT INTO`sync`(`last_update`)VALUES(UTC_TIMESTAMP()); 10 INSERT INTO`settings`(`name`,`content`,`type`,`constraints`)VALUES('activation_type','1','list','1-3'); 11 INSERT INTO`settings`(`name`,`content`,`type`)VALUES('bigpost_min_words','250','int'); 12 INSERT INTO`settings`(`name`,`content`,`type`)VALUES('megapost_min_words','1000','int'); 13 INSERT INTO`settings`(`name`,`content`,`type`)VALUES('meta_desc','','html-attribute'); 14 INSERT INTO`settings`(`name`,`content`,`type`)VALUES('rapid_loading','1','bool'); 15 INSERT INTO`settings`(`name`,`content`,`type`)VALUES('google_site_verify','','html-attribute'); 16 INSERT INTO`settings`(`name`,`content`,`type`,`constraints`)VALUES('avatar_visibility','0','list','0-1'); 17 INSERT INTO`themes`(`uname`,`default`)VALUES('cosora',1); 18 INSERT INTO`emails`(`email`,`uid`,`validated`)VALUES('admin@localhost',1,1); 19 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,"UseConvosOnlyWithMod":true,"CreateProfileReply":true,"AutoEmbed":true,"AutoLink":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'); 20 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,"UseConvosOnlyWithMod":true,"CreateProfileReply":true,"AutoEmbed":true,"AutoLink":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'); 21 INSERT INTO`users_groups`(`name`,`permissions`,`plugin_perms`,`is_mod`,`is_admin`,`is_banned`,`tag`)VALUES('Member','{"UploadFiles":true,"UploadAvatars":true,"UseConvos":true,"UseConvosOnlyWithMod":true,"CreateProfileReply":true,"AutoEmbed":true,"AutoLink":true,"ViewTopic":true,"LikeItem":true,"CreateTopic":true,"CreateReply":true}','{}',0,0,0,""); 22 INSERT INTO`users_groups`(`name`,`permissions`,`plugin_perms`,`is_mod`,`is_admin`,`is_banned`,`tag`)VALUES('Banned','{"ViewTopic":true}','{}',0,0,1,""); 23 INSERT INTO`users_groups`(`name`,`permissions`,`plugin_perms`,`is_mod`,`is_admin`,`is_banned`,`tag`)VALUES('Awaiting Activation','{"UseConvosOnlyWithMod":true,"ViewTopic":true}','{}',0,0,0,""); 24 INSERT INTO`users_groups`(`name`,`permissions`,`plugin_perms`,`is_mod`,`is_admin`,`is_banned`,`tag`)VALUES('Not Loggedin','{"ViewTopic":true}','{}',0,0,0,'Guest'); 25 INSERT INTO`forums`(`name`,`active`,`desc`,`tmpl`)VALUES('Reports',0,'All the reports go here',''); 26 INSERT INTO`forums`(`name`,`lastTopicID`,`lastReplyerID`,`desc`,`tmpl`)VALUES('General',1,1,'A place for general discussions which don''t fit elsewhere',''); 27 INSERT INTO`forums_permissions`(`gid`,`fid`,`permissions`)VALUES(1,1,'{"ViewTopic":true,"CreateReply":true,"CreateTopic":true,"PinTopic":true,"CloseTopic":true}'); 28 INSERT INTO`forums_permissions`(`gid`,`fid`,`permissions`)VALUES(2,1,'{"ViewTopic":true,"CreateReply":true,"CloseTopic":true}'); 29 INSERT INTO`forums_permissions`(`gid`,`fid`,`permissions`)VALUES(3,1,'{}'); 30 INSERT INTO`forums_permissions`(`gid`,`fid`,`permissions`)VALUES(4,1,'{}'); 31 INSERT INTO`forums_permissions`(`gid`,`fid`,`permissions`)VALUES(5,1,'{}'); 32 INSERT INTO`forums_permissions`(`gid`,`fid`,`permissions`)VALUES(6,1,'{}'); 33 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}'); 34 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}'); 35 INSERT INTO`forums_permissions`(`gid`,`fid`,`permissions`)VALUES(3,2,'{"ViewTopic":true,"CreateReply":true,"CreateTopic":true,"LikeItem":true}'); 36 INSERT INTO`forums_permissions`(`gid`,`fid`,`permissions`)VALUES(4,2,'{"ViewTopic":true}'); 37 INSERT INTO`forums_permissions`(`gid`,`fid`,`permissions`)VALUES(5,2,'{"ViewTopic":true}'); 38 INSERT INTO`forums_permissions`(`gid`,`fid`,`permissions`)VALUES(6,2,'{"ViewTopic":true}'); 39 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.',UTC_TIMESTAMP(),UTC_TIMESTAMP(),1,1,2,''); 40 INSERT INTO`replies`(`tid`,`content`,`parsed_content`,`createdAt`,`createdBy`,`lastUpdated`,`lastEdit`,`lastEditBy`,`ip`)VALUES(1,'A reply!','A reply!',UTC_TIMESTAMP(),1,UTC_TIMESTAMP(),0,0,''); 41 INSERT INTO`menus`()VALUES(); 42 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); 43 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); 44 INSERT INTO`menu_items`(`mid`,`htmlID`,`cssClass`,`position`,`tmplName`,`order`)VALUES(1,'general_alerts','menu_alerts','right','menu_alerts',2); 45 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); 46 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); 47 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); 48 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); 49 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); 50 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);