📄 回收站误删恢复.sql
字号:
SET IDENTITY_INSERT forums_Forums ON
print '创建 回收站'
IF EXISTS (SELECT ForumID FROM forums_Forums WHERE ForumID = 4)
DELETE forums_Forums WHERE ForumID = 4
INSERT INTO
forums_Forums
(
ForumID, IsActive, ParentID, ForumGroupID, Name, Description, DateCreated, Url, IsModerated, DaysToView, SortOrder, TotalPosts, TotalThreads, DisplayMask, EnablePostStatistics, EnableAutoDelete, EnableAnonymousPosting, AutoDeleteThreshold, MostRecentPostID, MostRecentThreadID, MostRecentThreadReplies, MostRecentPostAuthor, MostRecentPostAuthorID, MostRecentPostDate, PostsToModerate, ForumType, IsSearchable
)
VALUES
(
4, 1, 2, 1, '回收站', '所有被删除的帖子都可以在这里找到。', GetDate(), '', 0, 7, 4, 0, 0, 0x0, 0, 0, 0, 90, 0, 0, 0, '', 0, GetDate(), 0, 0, 1
)
SET IDENTITY_INSERT forums_Forums OFF
INSERT INTO forums_ForumPermissions VALUES (4, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2)
INSERT INTO forums_ForumPermissions VALUES (4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT INTO forums_ForumPermissions VALUES (4, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
INSERT INTO forums_ForumPermissions VALUES (4, 3, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 1)
INSERT INTO forums_ForumPermissions VALUES (4, 4, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 1)
INSERT INTO forums_ForumPermissions VALUES (4, 5, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 1)
INSERT INTO forums_ForumPermissions VALUES (4, 6, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 1)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -