PageRenderTime 52ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/setup/SQLServer/MSSQLSetup1.6.0.0.sql

#
SQL | 608 lines | 565 code | 19 blank | 24 comment | 0 complexity | cc88b686cad4e742d2389922b3bb669f MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  1. /****** BlogEngine.NET 1.6 SQL Setup Script ******/
  2. /****** Object: Table [dbo].[be_Categories] Script Date: 12/22/2007 14:14:54 ******/
  3. SET ANSI_NULLS ON
  4. GO
  5. SET QUOTED_IDENTIFIER ON
  6. GO
  7. CREATE TABLE [dbo].[be_Categories](
  8. [CategoryID] [uniqueidentifier] ROWGUIDCOL NOT NULL CONSTRAINT [DF_be_Categories_CategoryID] DEFAULT (newid()),
  9. [CategoryName] [nvarchar](50) NULL,
  10. [Description] [nvarchar](200) NULL,
  11. [ParentID] [uniqueidentifier] NULL,
  12. CONSTRAINT [PK_be_Categories] PRIMARY KEY CLUSTERED
  13. (
  14. [CategoryID] ASC
  15. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  16. ) ON [PRIMARY]
  17. GO
  18. /****** Object: Table [dbo].[be_DataStoreSettings] Script Date: 06/28/2008 19:29:31 ******/
  19. SET ANSI_NULLS ON
  20. GO
  21. SET QUOTED_IDENTIFIER ON
  22. GO
  23. SET ANSI_PADDING ON
  24. GO
  25. CREATE TABLE [dbo].[be_DataStoreSettings](
  26. [ExtensionType] [nvarchar](50) NOT NULL,
  27. [ExtensionId] [nvarchar](100) NOT NULL,
  28. [Settings] [nvarchar](max) NOT NULL
  29. ) ON [PRIMARY]
  30. GO
  31. /****** Object: Table [dbo].[be_Pages] Script Date: 12/22/2007 14:15:17 ******/
  32. SET ANSI_NULLS ON
  33. GO
  34. SET QUOTED_IDENTIFIER ON
  35. GO
  36. CREATE TABLE [dbo].[be_Pages](
  37. [PageID] [uniqueidentifier] ROWGUIDCOL NOT NULL CONSTRAINT [DF_be_Pages_PageID] DEFAULT (newid()),
  38. [Title] [nvarchar](255) NULL,
  39. [Description] [nvarchar](max) NULL,
  40. [PageContent] [nvarchar](max) NULL,
  41. [Keywords] [nvarchar](max) NULL,
  42. [DateCreated] [datetime] NULL,
  43. [DateModified] [datetime] NULL,
  44. [IsPublished] [bit] NULL,
  45. [IsFrontPage] [bit] NULL,
  46. [Parent] [uniqueidentifier] NULL,
  47. [ShowInList] [bit] NULL,
  48. [Slug] [nvarchar](255) NULL,
  49. CONSTRAINT [PK_be_Pages] PRIMARY KEY CLUSTERED
  50. (
  51. [PageID] ASC
  52. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  53. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  54. GO
  55. /****** Object: Table [dbo].[be_PingService] Script Date: 12/22/2007 14:15:47 ******/
  56. SET ANSI_NULLS ON
  57. GO
  58. SET QUOTED_IDENTIFIER ON
  59. GO
  60. CREATE TABLE [dbo].[be_PingService](
  61. [PingServiceID] [int] IDENTITY(1,1) NOT NULL,
  62. [Link] [nvarchar](255) NULL,
  63. CONSTRAINT [PK_be_PingService] PRIMARY KEY CLUSTERED
  64. (
  65. [PingServiceID] ASC
  66. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  67. ) ON [PRIMARY]
  68. GO
  69. /****** Object: Table [dbo].[be_Posts] Script Date: 12/22/2007 14:16:27 ******/
  70. SET ANSI_NULLS ON
  71. GO
  72. SET QUOTED_IDENTIFIER ON
  73. GO
  74. CREATE TABLE [dbo].[be_Posts](
  75. [PostID] [uniqueidentifier] ROWGUIDCOL NOT NULL CONSTRAINT [DF_be_Posts_PostID] DEFAULT (newid()),
  76. [Title] [nvarchar](255) NULL,
  77. [Description] [nvarchar](max) NULL,
  78. [PostContent] [nvarchar](max) NULL,
  79. [DateCreated] [datetime] NULL,
  80. [DateModified] [datetime] NULL,
  81. [Author] [nvarchar](50) NULL,
  82. [IsPublished] [bit] NULL,
  83. [IsCommentEnabled] [bit] NULL,
  84. [Raters] [int] NULL,
  85. [Rating] [real] NULL,
  86. [Slug] [nvarchar](255) NULL,
  87. CONSTRAINT [PK_be_Posts] PRIMARY KEY CLUSTERED
  88. (
  89. [PostID] ASC
  90. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  91. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  92. GO
  93. /****** Object: Table [dbo].[be_Settings] Script Date: 12/22/2007 14:16:07 ******/
  94. SET ANSI_NULLS ON
  95. GO
  96. SET QUOTED_IDENTIFIER ON
  97. GO
  98. CREATE TABLE [dbo].[be_Settings](
  99. [SettingName] [nvarchar](50) NOT NULL,
  100. [SettingValue] [nvarchar](max) NULL,
  101. CONSTRAINT [PK_be_Settings] PRIMARY KEY CLUSTERED
  102. (
  103. [SettingName] ASC
  104. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  105. ) ON [PRIMARY]
  106. GO
  107. /****** Object: Table [dbo].[be_Profiles] Script Date: 06/28/2008 19:33:41 ******/
  108. SET ANSI_NULLS ON
  109. GO
  110. SET QUOTED_IDENTIFIER ON
  111. GO
  112. CREATE TABLE [dbo].[be_Profiles](
  113. [ProfileID] [int] IDENTITY(1,1) NOT NULL,
  114. [UserName] [nvarchar](100) NULL,
  115. [SettingName] [nvarchar](200) NULL,
  116. [SettingValue] [nvarchar](max) NULL,
  117. CONSTRAINT [PK_be_Profiles] PRIMARY KEY CLUSTERED
  118. (
  119. [ProfileID] ASC
  120. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  121. ) ON [PRIMARY]
  122. GO
  123. /****** Object: Table [dbo].[be_StopWords] Script Date: 06/28/2008 19:33:32 ******/
  124. SET ANSI_NULLS ON
  125. GO
  126. SET QUOTED_IDENTIFIER ON
  127. GO
  128. CREATE TABLE [dbo].[be_StopWords](
  129. [StopWord] [nvarchar](50) NOT NULL,
  130. CONSTRAINT [PK_be_StopWords] PRIMARY KEY CLUSTERED
  131. (
  132. [StopWord] ASC
  133. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  134. ) ON [PRIMARY]
  135. GO
  136. /****** Object: Table [dbo].[be_PostCategory] Script Date: 12/22/2007 14:17:00 ******/
  137. SET ANSI_NULLS ON
  138. GO
  139. SET QUOTED_IDENTIFIER ON
  140. GO
  141. CREATE TABLE [dbo].[be_PostCategory](
  142. [PostCategoryID] [int] IDENTITY(1,1) NOT NULL,
  143. [PostID] [uniqueidentifier] NOT NULL,
  144. [CategoryID] [uniqueidentifier] NOT NULL,
  145. CONSTRAINT [PK_be_PostCategory] PRIMARY KEY CLUSTERED
  146. (
  147. [PostCategoryID] ASC
  148. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  149. ) ON [PRIMARY]
  150. GO
  151. ALTER TABLE [dbo].[be_PostCategory] WITH CHECK ADD CONSTRAINT [FK_be_PostCategory_be_Categories] FOREIGN KEY([CategoryID])
  152. REFERENCES [dbo].[be_Categories] ([CategoryID])
  153. GO
  154. ALTER TABLE [dbo].[be_PostCategory] CHECK CONSTRAINT [FK_be_PostCategory_be_Categories]
  155. GO
  156. ALTER TABLE [dbo].[be_PostCategory] WITH CHECK ADD CONSTRAINT [FK_be_PostCategory_be_Posts] FOREIGN KEY([PostID])
  157. REFERENCES [dbo].[be_Posts] ([PostID])
  158. GO
  159. ALTER TABLE [dbo].[be_PostCategory] CHECK CONSTRAINT [FK_be_PostCategory_be_Posts]
  160. GO
  161. /****** Object: Table [dbo].[be_PostComment] Script Date: 12/22/2007 14:17:15 ******/
  162. SET ANSI_NULLS ON
  163. GO
  164. SET QUOTED_IDENTIFIER ON
  165. GO
  166. CREATE TABLE [dbo].[be_PostComment](
  167. [PostCommentID] [uniqueidentifier] ROWGUIDCOL NOT NULL CONSTRAINT [DF_be_PostComment_PostCommentID] DEFAULT (newid()),
  168. [PostID] [uniqueidentifier] NOT NULL,
  169. [ParentCommentID] [uniqueidentifier] NOT NULL DEFAULT ('00000000-0000-0000-0000-000000000000'),
  170. [CommentDate] [datetime] NOT NULL,
  171. [Author] [nvarchar](255) NULL,
  172. [Email] [nvarchar](255) NULL,
  173. [Website] [nvarchar](255) NULL,
  174. [Comment] [nvarchar](max) NULL,
  175. [Country] [nvarchar](255) NULL,
  176. [Ip] [nvarchar](50) NULL,
  177. [IsApproved] [bit] NULL,
  178. [ModeratedBy] [nvarchar](100) NULL,
  179. [Avatar] [nvarchar](255) NULL,
  180. CONSTRAINT [PK_be_PostComment] PRIMARY KEY CLUSTERED
  181. (
  182. [PostCommentID] ASC
  183. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  184. ) ON [PRIMARY]
  185. GO
  186. ALTER TABLE [dbo].[be_PostComment] WITH CHECK ADD CONSTRAINT [FK_be_PostComment_be_Posts] FOREIGN KEY([PostID])
  187. REFERENCES [dbo].[be_Posts] ([PostID])
  188. GO
  189. ALTER TABLE [dbo].[be_PostComment] CHECK CONSTRAINT [FK_be_PostComment_be_Posts]
  190. GO
  191. /****** Object: Table [dbo].[be_PostNotify] Script Date: 12/22/2007 14:17:31 ******/
  192. SET ANSI_NULLS ON
  193. GO
  194. SET QUOTED_IDENTIFIER ON
  195. GO
  196. CREATE TABLE [dbo].[be_PostNotify](
  197. [PostNotifyID] [int] IDENTITY(1,1) NOT NULL,
  198. [PostID] [uniqueidentifier] NOT NULL,
  199. [NotifyAddress] [nvarchar](255) NULL,
  200. CONSTRAINT [PK_be_PostNotify] PRIMARY KEY CLUSTERED
  201. (
  202. [PostNotifyID] ASC
  203. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  204. ) ON [PRIMARY]
  205. GO
  206. ALTER TABLE [dbo].[be_PostNotify] WITH CHECK ADD CONSTRAINT [FK_be_PostNotify_be_Posts] FOREIGN KEY([PostID])
  207. REFERENCES [dbo].[be_Posts] ([PostID])
  208. GO
  209. ALTER TABLE [dbo].[be_PostNotify] CHECK CONSTRAINT [FK_be_PostNotify_be_Posts]
  210. GO
  211. /****** Object: Table [dbo].[be_PostTag] Script Date: 12/22/2007 14:17:44 ******/
  212. SET ANSI_NULLS ON
  213. GO
  214. SET QUOTED_IDENTIFIER ON
  215. GO
  216. CREATE TABLE [dbo].[be_PostTag](
  217. [PostTagID] [int] IDENTITY(1,1) NOT NULL,
  218. [PostID] [uniqueidentifier] NOT NULL,
  219. [Tag] [nvarchar](50) NULL,
  220. CONSTRAINT [PK_be_PostTag] PRIMARY KEY CLUSTERED
  221. (
  222. [PostTagID] ASC
  223. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  224. ) ON [PRIMARY]
  225. GO
  226. ALTER TABLE [dbo].[be_PostTag] WITH CHECK ADD CONSTRAINT [FK_be_PostTag_be_Posts] FOREIGN KEY([PostID])
  227. REFERENCES [dbo].[be_Posts] ([PostID])
  228. GO
  229. ALTER TABLE [dbo].[be_PostTag] CHECK CONSTRAINT [FK_be_PostTag_be_Posts]
  230. GO
  231. /****** Object: Table [dbo].[be_Users] Script Date: 07/30/2008 21:55:28 ******/
  232. SET ANSI_NULLS ON
  233. GO
  234. SET QUOTED_IDENTIFIER ON
  235. GO
  236. CREATE TABLE [dbo].[be_Users](
  237. [UserID] [int] IDENTITY(1,1) NOT NULL,
  238. [UserName] [nvarchar](100) NOT NULL,
  239. [Password] [nvarchar](255) NOT NULL,
  240. [LastLoginTime] [datetime] NULL,
  241. [EmailAddress] [nvarchar](100) NULL,
  242. CONSTRAINT [PK_be_Users] PRIMARY KEY CLUSTERED
  243. (
  244. [UserID] ASC
  245. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  246. ) ON [PRIMARY]
  247. GO
  248. /****** Object: Table [dbo].[be_Roles] Script Date: 07/30/2008 21:56:59 ******/
  249. SET ANSI_NULLS ON
  250. GO
  251. SET QUOTED_IDENTIFIER ON
  252. GO
  253. CREATE TABLE [dbo].[be_Roles](
  254. [RoleID] [int] IDENTITY(1,1) NOT NULL,
  255. [Role] [nvarchar](100) NOT NULL,
  256. CONSTRAINT [PK_be_Roles] PRIMARY KEY CLUSTERED
  257. (
  258. [RoleID] ASC
  259. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  260. ) ON [PRIMARY]
  261. GO
  262. /****** Object: Table [dbo].[be_UserRoles] Script Date: 07/31/2008 12:26:45 ******/
  263. SET ANSI_NULLS ON
  264. GO
  265. SET QUOTED_IDENTIFIER ON
  266. GO
  267. CREATE TABLE [dbo].[be_UserRoles](
  268. [UserRoleID] [int] IDENTITY(1,1) NOT NULL,
  269. [UserID] [int] NOT NULL,
  270. [RoleID] [int] NOT NULL,
  271. CONSTRAINT [PK_be_UserRoles] PRIMARY KEY CLUSTERED
  272. (
  273. [UserRoleID] ASC
  274. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  275. ) ON [PRIMARY]
  276. GO
  277. ALTER TABLE [dbo].[be_UserRoles] WITH CHECK ADD CONSTRAINT [FK_be_UserRoles_be_Roles] FOREIGN KEY([RoleID])
  278. REFERENCES [dbo].[be_Roles] ([RoleID])
  279. GO
  280. ALTER TABLE [dbo].[be_UserRoles] CHECK CONSTRAINT [FK_be_UserRoles_be_Roles]
  281. GO
  282. ALTER TABLE [dbo].[be_UserRoles] WITH CHECK ADD CONSTRAINT [FK_be_UserRoles_be_Users] FOREIGN KEY([UserID])
  283. REFERENCES [dbo].[be_Users] ([UserID])
  284. GO
  285. ALTER TABLE [dbo].[be_UserRoles] CHECK CONSTRAINT [FK_be_UserRoles_be_Users]
  286. GO
  287. CREATE TABLE [dbo].[be_BlogRollItems](
  288. [BlogRollId] [uniqueidentifier] NOT NULL,
  289. [Title] [nvarchar](255) NOT NULL,
  290. [Description] [nvarchar](max) NULL,
  291. [BlogUrl] [varchar](255) NOT NULL,
  292. [FeedUrl] [varchar](255) NULL,
  293. [Xfn] [varchar](255) NULL,
  294. [SortIndex] [int] NOT NULL,
  295. CONSTRAINT [PK_be_BlogRollItems] PRIMARY KEY CLUSTERED
  296. (
  297. [BlogRollId] ASC
  298. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  299. ) ON [PRIMARY]
  300. GO
  301. CREATE TABLE [dbo].[be_Referrers](
  302. [ReferrerId] [uniqueidentifier] NOT NULL,
  303. [ReferralDay] [datetime] NOT NULL CONSTRAINT [DF_be_Referrers_Day] DEFAULT (getdate()),
  304. [ReferrerUrl] [varchar](255) NOT NULL,
  305. [ReferralCount] [int] NOT NULL,
  306. [Url] [varchar](255) NULL,
  307. [IsSpam] [bit] NULL,
  308. CONSTRAINT [PK_be_Referrers] PRIMARY KEY CLUSTERED
  309. (
  310. [ReferrerId] ASC
  311. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  312. ) ON [PRIMARY]
  313. GO
  314. /****** Object: Index [FK_PostID] Script Date: 12/22/2007 14:18:36 ******/
  315. CREATE NONCLUSTERED INDEX [FK_PostID] ON [dbo].[be_PostCategory]
  316. (
  317. [PostID] ASC
  318. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  319. GO
  320. /****** Object: Index [FK_CategoryID] Script Date: 12/22/2007 14:19:19 ******/
  321. CREATE NONCLUSTERED INDEX [FK_CategoryID] ON [dbo].[be_PostCategory]
  322. (
  323. [CategoryID] ASC
  324. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  325. GO
  326. /****** Object: Index [FK_PostID] Script Date: 12/22/2007 14:19:45 ******/
  327. CREATE NONCLUSTERED INDEX [FK_PostID] ON [dbo].[be_PostComment]
  328. (
  329. [PostID] ASC
  330. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  331. GO
  332. /****** Object: Index [FK_PostID] Script Date: 12/22/2007 14:20:29 ******/
  333. CREATE NONCLUSTERED INDEX [FK_PostID] ON [dbo].[be_PostNotify]
  334. (
  335. [PostID] ASC
  336. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  337. GO
  338. /****** Object: Index [FK_PostID] Script Date: 12/22/2007 14:20:43 ******/
  339. CREATE NONCLUSTERED INDEX [FK_PostID] ON [dbo].[be_PostTag]
  340. (
  341. [PostID] ASC
  342. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  343. GO
  344. /****** Object: Index [I_TypeID] Script Date: 06/28/2008 19:34:43 ******/
  345. CREATE NONCLUSTERED INDEX [I_TypeID] ON [dbo].[be_DataStoreSettings]
  346. (
  347. [ExtensionType] ASC,
  348. [ExtensionId] ASC
  349. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  350. GO
  351. /****** Object: Index [I_UserName] Script Date: 06/28/2008 19:35:12 ******/
  352. CREATE NONCLUSTERED INDEX [I_UserName] ON [dbo].[be_Profiles]
  353. (
  354. [UserName] ASC
  355. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  356. GO
  357. /*** Load initial Data ***/
  358. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('administratorrole', 'Administrators');
  359. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('alternatefeedurl', '');
  360. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('authorname', 'My name');
  361. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('avatar', 'combine');
  362. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('blogrollmaxlength', '23');
  363. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('blogrollupdateminutes', '60');
  364. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('blogrollvisibleposts', '3');
  365. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('contactformmessage', '<p>I will answer the mail as soon as I can.</p>');
  366. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('contactthankmessage', '<h1>Thank you</h1><p>The message was sent.</p>');
  367. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('culture', 'Auto');
  368. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('dayscommentsareenabled', '0');
  369. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('description', 'Short description of the blog');
  370. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('displaycommentsonrecentposts', 'True');
  371. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('displayratingsonrecentposts', 'True');
  372. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('email', 'user@example.com');
  373. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('emailsubjectprefix', 'Weblog');
  374. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablecommentsearch', 'True');
  375. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablecommentsmoderation', 'False');
  376. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablecontactattachments', 'True');
  377. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablecountryincomments', 'True');
  378. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablehttpcompression', 'True');
  379. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enableopensearch', 'True');
  380. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablepingbackreceive', 'True');
  381. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablepingbacksend', 'True');
  382. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablerating', 'True');
  383. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablereferrertracking', 'False');
  384. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablerelatedposts', 'True');
  385. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablessl', 'False');
  386. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enabletrackbackreceive', 'True');
  387. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enabletrackbacksend', 'True');
  388. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('endorsement', 'http://www.dotnetblogengine.net/syndication.axd');
  389. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('fileextension', '.aspx');
  390. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('geocodinglatitude', '0');
  391. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('geocodinglongitude', '0');
  392. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('handlewwwsubdomain', '');
  393. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('iscocommentenabled', 'False');
  394. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('iscommentsenabled', 'True');
  395. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('language', 'en-GB');
  396. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('mobiletheme', 'Mobile');
  397. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('name', 'Name of the blog');
  398. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('numberofrecentcomments', '10');
  399. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('numberofrecentposts', '10');
  400. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('postsperfeed', '10');
  401. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('postsperpage', '10');
  402. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('removewhitespaceinstylesheets', 'True');
  403. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('searchbuttontext', 'Search');
  404. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('searchcommentlabeltext', 'Include comments in search');
  405. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('searchdefaulttext', 'Enter search term');
  406. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('sendmailoncomment', 'True');
  407. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('showdescriptioninpostlist', 'False');
  408. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('showlivepreview', 'True');
  409. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('showpostnavigation', 'True');
  410. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('smtppassword', 'password');
  411. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('smtpserver', 'mail.example.dk');
  412. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('smtpserverport', '25');
  413. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('smtpusername', 'user@example.com');
  414. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('storagelocation', '~/App_Data/');
  415. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('syndicationformat', 'Rss');
  416. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('theme', 'Standard');
  417. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('timestamppostlinks', 'True');
  418. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('timezone', '-5');
  419. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('trackingscript', '');
  420. INSERT INTO be_PingService (Link) VALUES ('http://rpc.technorati.com/rpc/ping');
  421. INSERT INTO be_PingService (Link) VALUES ('http://rpc.pingomatic.com/rpc2');
  422. INSERT INTO be_PingService (Link) VALUES ('http://ping.feedburner.com');
  423. INSERT INTO be_PingService (Link) VALUES ('http://www.bloglines.com/ping');
  424. INSERT INTO be_PingService (Link) VALUES ('http://services.newsgator.com/ngws/xmlrpcping.aspx');
  425. INSERT INTO be_PingService (Link) VALUES ('http://api.my.yahoo.com/rpc2 ');
  426. INSERT INTO be_PingService (Link) VALUES ('http://blogsearch.google.com/ping/RPC2');
  427. INSERT INTO be_PingService (Link) VALUES ('http://rpc.pingthesemanticweb.com/');
  428. INSERT INTO be_StopWords (StopWord) VALUES ('a');
  429. INSERT INTO be_StopWords (StopWord) VALUES ('about');
  430. INSERT INTO be_StopWords (StopWord) VALUES ('actually');
  431. INSERT INTO be_StopWords (StopWord) VALUES ('add');
  432. INSERT INTO be_StopWords (StopWord) VALUES ('after');
  433. INSERT INTO be_StopWords (StopWord) VALUES ('all');
  434. INSERT INTO be_StopWords (StopWord) VALUES ('almost');
  435. INSERT INTO be_StopWords (StopWord) VALUES ('along');
  436. INSERT INTO be_StopWords (StopWord) VALUES ('also');
  437. INSERT INTO be_StopWords (StopWord) VALUES ('an');
  438. INSERT INTO be_StopWords (StopWord) VALUES ('and');
  439. INSERT INTO be_StopWords (StopWord) VALUES ('any');
  440. INSERT INTO be_StopWords (StopWord) VALUES ('are');
  441. INSERT INTO be_StopWords (StopWord) VALUES ('as');
  442. INSERT INTO be_StopWords (StopWord) VALUES ('at');
  443. INSERT INTO be_StopWords (StopWord) VALUES ('be');
  444. INSERT INTO be_StopWords (StopWord) VALUES ('both');
  445. INSERT INTO be_StopWords (StopWord) VALUES ('but');
  446. INSERT INTO be_StopWords (StopWord) VALUES ('by');
  447. INSERT INTO be_StopWords (StopWord) VALUES ('can');
  448. INSERT INTO be_StopWords (StopWord) VALUES ('cannot');
  449. INSERT INTO be_StopWords (StopWord) VALUES ('com');
  450. INSERT INTO be_StopWords (StopWord) VALUES ('could');
  451. INSERT INTO be_StopWords (StopWord) VALUES ('de');
  452. INSERT INTO be_StopWords (StopWord) VALUES ('do');
  453. INSERT INTO be_StopWords (StopWord) VALUES ('down');
  454. INSERT INTO be_StopWords (StopWord) VALUES ('each');
  455. INSERT INTO be_StopWords (StopWord) VALUES ('either');
  456. INSERT INTO be_StopWords (StopWord) VALUES ('en');
  457. INSERT INTO be_StopWords (StopWord) VALUES ('for');
  458. INSERT INTO be_StopWords (StopWord) VALUES ('from');
  459. INSERT INTO be_StopWords (StopWord) VALUES ('good');
  460. INSERT INTO be_StopWords (StopWord) VALUES ('has');
  461. INSERT INTO be_StopWords (StopWord) VALUES ('have');
  462. INSERT INTO be_StopWords (StopWord) VALUES ('he');
  463. INSERT INTO be_StopWords (StopWord) VALUES ('her');
  464. INSERT INTO be_StopWords (StopWord) VALUES ('here');
  465. INSERT INTO be_StopWords (StopWord) VALUES ('hers');
  466. INSERT INTO be_StopWords (StopWord) VALUES ('his');
  467. INSERT INTO be_StopWords (StopWord) VALUES ('how');
  468. INSERT INTO be_StopWords (StopWord) VALUES ('i');
  469. INSERT INTO be_StopWords (StopWord) VALUES ('if');
  470. INSERT INTO be_StopWords (StopWord) VALUES ('in');
  471. INSERT INTO be_StopWords (StopWord) VALUES ('into');
  472. INSERT INTO be_StopWords (StopWord) VALUES ('is');
  473. INSERT INTO be_StopWords (StopWord) VALUES ('it');
  474. INSERT INTO be_StopWords (StopWord) VALUES ('its');
  475. INSERT INTO be_StopWords (StopWord) VALUES ('just');
  476. INSERT INTO be_StopWords (StopWord) VALUES ('la');
  477. INSERT INTO be_StopWords (StopWord) VALUES ('like');
  478. INSERT INTO be_StopWords (StopWord) VALUES ('long');
  479. INSERT INTO be_StopWords (StopWord) VALUES ('make');
  480. INSERT INTO be_StopWords (StopWord) VALUES ('me');
  481. INSERT INTO be_StopWords (StopWord) VALUES ('more');
  482. INSERT INTO be_StopWords (StopWord) VALUES ('much');
  483. INSERT INTO be_StopWords (StopWord) VALUES ('my');
  484. INSERT INTO be_StopWords (StopWord) VALUES ('need');
  485. INSERT INTO be_StopWords (StopWord) VALUES ('new');
  486. INSERT INTO be_StopWords (StopWord) VALUES ('now');
  487. INSERT INTO be_StopWords (StopWord) VALUES ('of');
  488. INSERT INTO be_StopWords (StopWord) VALUES ('off');
  489. INSERT INTO be_StopWords (StopWord) VALUES ('on');
  490. INSERT INTO be_StopWords (StopWord) VALUES ('once');
  491. INSERT INTO be_StopWords (StopWord) VALUES ('one');
  492. INSERT INTO be_StopWords (StopWord) VALUES ('ones');
  493. INSERT INTO be_StopWords (StopWord) VALUES ('only');
  494. INSERT INTO be_StopWords (StopWord) VALUES ('or');
  495. INSERT INTO be_StopWords (StopWord) VALUES ('our');
  496. INSERT INTO be_StopWords (StopWord) VALUES ('out');
  497. INSERT INTO be_StopWords (StopWord) VALUES ('over');
  498. INSERT INTO be_StopWords (StopWord) VALUES ('own');
  499. INSERT INTO be_StopWords (StopWord) VALUES ('really');
  500. INSERT INTO be_StopWords (StopWord) VALUES ('right');
  501. INSERT INTO be_StopWords (StopWord) VALUES ('same');
  502. INSERT INTO be_StopWords (StopWord) VALUES ('see');
  503. INSERT INTO be_StopWords (StopWord) VALUES ('she');
  504. INSERT INTO be_StopWords (StopWord) VALUES ('so');
  505. INSERT INTO be_StopWords (StopWord) VALUES ('some');
  506. INSERT INTO be_StopWords (StopWord) VALUES ('such');
  507. INSERT INTO be_StopWords (StopWord) VALUES ('take');
  508. INSERT INTO be_StopWords (StopWord) VALUES ('takes');
  509. INSERT INTO be_StopWords (StopWord) VALUES ('that');
  510. INSERT INTO be_StopWords (StopWord) VALUES ('the');
  511. INSERT INTO be_StopWords (StopWord) VALUES ('their');
  512. INSERT INTO be_StopWords (StopWord) VALUES ('these');
  513. INSERT INTO be_StopWords (StopWord) VALUES ('thing');
  514. INSERT INTO be_StopWords (StopWord) VALUES ('this');
  515. INSERT INTO be_StopWords (StopWord) VALUES ('to');
  516. INSERT INTO be_StopWords (StopWord) VALUES ('too');
  517. INSERT INTO be_StopWords (StopWord) VALUES ('took');
  518. INSERT INTO be_StopWords (StopWord) VALUES ('und');
  519. INSERT INTO be_StopWords (StopWord) VALUES ('up');
  520. INSERT INTO be_StopWords (StopWord) VALUES ('use');
  521. INSERT INTO be_StopWords (StopWord) VALUES ('used');
  522. INSERT INTO be_StopWords (StopWord) VALUES ('using');
  523. INSERT INTO be_StopWords (StopWord) VALUES ('very');
  524. INSERT INTO be_StopWords (StopWord) VALUES ('was');
  525. INSERT INTO be_StopWords (StopWord) VALUES ('we');
  526. INSERT INTO be_StopWords (StopWord) VALUES ('well');
  527. INSERT INTO be_StopWords (StopWord) VALUES ('what');
  528. INSERT INTO be_StopWords (StopWord) VALUES ('when');
  529. INSERT INTO be_StopWords (StopWord) VALUES ('where');
  530. INSERT INTO be_StopWords (StopWord) VALUES ('who');
  531. INSERT INTO be_StopWords (StopWord) VALUES ('will');
  532. INSERT INTO be_StopWords (StopWord) VALUES ('with');
  533. INSERT INTO be_StopWords (StopWord) VALUES ('www');
  534. INSERT INTO be_StopWords (StopWord) VALUES ('you');
  535. INSERT INTO be_StopWords (StopWord) VALUES ('your');
  536. INSERT INTO be_BlogRollItems ( BlogRollId, Title, [Description], BlogUrl, FeedUrl, Xfn, SortIndex )
  537. VALUES ( '25e4d8da-3278-4e58-b0bf-932496dabc96', 'Mads Kristensen', 'Full featured simplicity in ASP.NET and C#', 'http://madskristensen.net', 'http://feeds.feedburner.com/netslave', 'contact', 0 );
  538. INSERT INTO be_BlogRollItems ( BlogRollId, Title, [Description], BlogUrl, FeedUrl, Xfn, SortIndex )
  539. VALUES ( 'ccc817ef-e760-482b-b82f-a6854663110f', 'Al Nyveldt', 'Adventures in Code and Other Stories', 'http://www.nyveldt.com/blog/', 'http://feeds.feedburner.com/razorant', 'contact', 1 );
  540. INSERT INTO be_BlogRollItems ( BlogRollId, Title, [Description], BlogUrl, FeedUrl, Xfn, SortIndex )
  541. VALUES ( 'dcdaa78b-0b77-4691-99f0-1bb6418945a1', 'Ruslan Tur', '.NET and Open Source: better together', 'http://rtur.net/blog/', 'http://feeds.feedburner.com/rtur', 'contact', 2 );
  542. INSERT INTO be_BlogRollItems ( BlogRollId, Title, [Description], BlogUrl, FeedUrl, Xfn, SortIndex )
  543. VALUES ( '8a846489-b69e-4fde-b2b2-53bc6104a6fa', 'John Dyer', 'Technology and web development in ASP.NET, Flash, and JavaScript', 'http://johndyer.name/', 'http://johndyer.name/syndication.axd', 'contact', 3 );
  544. INSERT INTO be_BlogRollItems ( BlogRollId, Title, [Description], BlogUrl, FeedUrl, Xfn, SortIndex )
  545. VALUES ( '7f906880-4316-47f1-a934-1a912fc02f8b', 'Russell van der Walt', 'an adventure in web technologies', 'http://blog.ruski.co.za/', 'http://feeds.feedburner.com/rusvdw', 'contact', 4 );
  546. INSERT INTO be_BlogRollItems ( BlogRollId, Title, [Description], BlogUrl, FeedUrl, Xfn, SortIndex )
  547. VALUES ( '890f00e5-3a86-4cba-b85b-104063964a87', 'Ben Amada', 'adventures in application development', 'http://allben.net/', 'http://feeds.feedburner.com/allben', 'contact', 5 );
  548. DECLARE @postID uniqueidentifier, @catID uniqueidentifier;
  549. SET @postID = NEWID();
  550. SET @catID = NEWID();
  551. INSERT INTO be_Categories (CategoryID, CategoryName)
  552. VALUES (@catID, 'General');
  553. INSERT INTO be_Posts (PostID, Title, Description, PostContent, DateCreated, Author, IsPublished)
  554. VALUES (@postID,
  555. 'Welcome to BlogEngine.NET 1.6 using Microsoft SQL Server',
  556. 'The description is used as the meta description as well as shown in the related posts. It is recommended that you write a description, but not mandatory',
  557. '<p>If you see this post it means that BlogEngine.NET 1.6 is running with SQL Server and the DbBlogProvider is configured correctly.</p>
  558. <h2>Setup</h2>
  559. <p>If you are using the ASP.NET Membership provider, you are set to use existing users. If you are using the default BlogEngine.NET XML provider, it is time to setup some users. Find the sign-in link located either at the bottom or top of the page depending on your current theme and click it. Now enter "admin" in both the username and password fields and click the button. You will now see an admin menu appear. It has a link to the "Users" admin page. From there you can change the username and password.</p>
  560. <h2>Write permissions</h2>
  561. <p>Since you are using SQL to store your posts, most information is stored there. However, if you want to store attachments or images in the blog, you will want write permissions setup on the App_Data folder.</p>
  562. <h2>On the web </h2>
  563. <p>You can find BlogEngine.NET on the <a href="http://www.dotnetblogengine.net">official website</a>. Here you will find tutorials, documentation, tips and tricks and much more. The ongoing development of BlogEngine.NET can be followed at <a href="http://blogengine.codeplex.com/">CodePlex</a> where the daily builds will be published for anyone to download.</p>
  564. <p>Good luck and happy writing.</p>
  565. <p>The BlogEngine.NET team</p>',
  566. GETDATE(),
  567. 'admin',
  568. 1);
  569. INSERT INTO be_PostCategory (PostID, CategoryID)
  570. VALUES (@postID, @catID);
  571. INSERT INTO be_PostTag (PostID, Tag)
  572. VALUES (@postID, 'blog');
  573. INSERT INTO be_PostTag (PostID, Tag)
  574. VALUES (@postID, 'welcome');
  575. INSERT INTO be_Users (UserName, Password, LastLoginTime, EmailAddress)
  576. VALUES ('Admin', '', GETDATE(), 'email@example.com');
  577. INSERT INTO be_Roles (Role)
  578. VALUES ('Administrators');
  579. INSERT INTO be_Roles (Role)
  580. VALUES ('Editors');
  581. INSERT INTO be_UserRoles (UserID, RoleID)
  582. VALUES (1, 1);
  583. INSERT INTO be_DataStoreSettings (ExtensionType, ExtensionId, Settings)
  584. VALUES (1, 'be_WIDGET_ZONE',
  585. '<?xml version="1.0" encoding="utf-16"?>
  586. <WidgetData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  587. <Settings>&lt;widgets&gt;&lt;widget id="d9ada63d-3462-4c72-908e-9d35f0acce40" title="TextBox" showTitle="True"&gt;TextBox&lt;/widget&gt;&lt;widget id="19baa5f6-49d4-4828-8f7f-018535c35f94" title="Administration" showTitle="True"&gt;Administration&lt;/widget&gt;&lt;widget id="d81c5ae3-e57e-4374-a539-5cdee45e639f" title="Search" showTitle="True"&gt;Search&lt;/widget&gt;&lt;widget id="77142800-6dff-4016-99ca-69b5c5ebac93" title="Tag cloud" showTitle="True"&gt;Tag cloud&lt;/widget&gt;&lt;widget id="4ce68ae7-c0c8-4bf8-b50f-a67b582b0d2e" title="RecentPosts" showTitle="True"&gt;RecentPosts&lt;/widget&gt;&lt;/widgets&gt;</Settings>
  588. </WidgetData>');
  589. GO