PageRenderTime 50ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/setup/SQLServer/MSSQLSetup2.0.0.0.sql

#
SQL | 650 lines | 605 code | 21 blank | 24 comment | 0 complexity | 434677b7ecc04095b7d87b8f58a55655 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  1. /****** BlogEngine.NET 2.0 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. [IsDeleted] [bit] NOT NULL DEFAULT 0,
  50. CONSTRAINT [PK_be_Pages] PRIMARY KEY CLUSTERED
  51. (
  52. [PageID] ASC
  53. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  54. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  55. GO
  56. /****** Object: Table [dbo].[be_PingService] Script Date: 12/22/2007 14:15:47 ******/
  57. SET ANSI_NULLS ON
  58. GO
  59. SET QUOTED_IDENTIFIER ON
  60. GO
  61. CREATE TABLE [dbo].[be_PingService](
  62. [PingServiceID] [int] IDENTITY(1,1) NOT NULL,
  63. [Link] [nvarchar](255) NULL,
  64. CONSTRAINT [PK_be_PingService] PRIMARY KEY CLUSTERED
  65. (
  66. [PingServiceID] ASC
  67. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  68. ) ON [PRIMARY]
  69. GO
  70. /****** Object: Table [dbo].[be_Posts] Script Date: 12/22/2007 14:16:27 ******/
  71. SET ANSI_NULLS ON
  72. GO
  73. SET QUOTED_IDENTIFIER ON
  74. GO
  75. CREATE TABLE [dbo].[be_Posts](
  76. [PostID] [uniqueidentifier] ROWGUIDCOL NOT NULL CONSTRAINT [DF_be_Posts_PostID] DEFAULT (newid()),
  77. [Title] [nvarchar](255) NULL,
  78. [Description] [nvarchar](max) NULL,
  79. [PostContent] [nvarchar](max) NULL,
  80. [DateCreated] [datetime] NULL,
  81. [DateModified] [datetime] NULL,
  82. [Author] [nvarchar](50) NULL,
  83. [IsPublished] [bit] NULL,
  84. [IsCommentEnabled] [bit] NULL,
  85. [Raters] [int] NULL,
  86. [Rating] [real] NULL,
  87. [Slug] [nvarchar](255) NULL,
  88. [IsDeleted] [bit] NOT NULL DEFAULT 0,
  89. CONSTRAINT [PK_be_Posts] PRIMARY KEY CLUSTERED
  90. (
  91. [PostID] ASC
  92. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  93. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  94. GO
  95. /****** Object: Table [dbo].[be_Settings] Script Date: 12/22/2007 14:16:07 ******/
  96. SET ANSI_NULLS ON
  97. GO
  98. SET QUOTED_IDENTIFIER ON
  99. GO
  100. CREATE TABLE [dbo].[be_Settings](
  101. [SettingName] [nvarchar](50) NOT NULL,
  102. [SettingValue] [nvarchar](max) NULL,
  103. CONSTRAINT [PK_be_Settings] PRIMARY KEY CLUSTERED
  104. (
  105. [SettingName] ASC
  106. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  107. ) ON [PRIMARY]
  108. GO
  109. /****** Object: Table [dbo].[be_Profiles] Script Date: 06/28/2008 19:33:41 ******/
  110. SET ANSI_NULLS ON
  111. GO
  112. SET QUOTED_IDENTIFIER ON
  113. GO
  114. CREATE TABLE [dbo].[be_Profiles](
  115. [ProfileID] [int] IDENTITY(1,1) NOT NULL,
  116. [UserName] [nvarchar](100) NULL,
  117. [SettingName] [nvarchar](200) NULL,
  118. [SettingValue] [nvarchar](max) NULL,
  119. CONSTRAINT [PK_be_Profiles] PRIMARY KEY CLUSTERED
  120. (
  121. [ProfileID] ASC
  122. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  123. ) ON [PRIMARY]
  124. GO
  125. /****** Object: Table [dbo].[be_StopWords] Script Date: 06/28/2008 19:33:32 ******/
  126. SET ANSI_NULLS ON
  127. GO
  128. SET QUOTED_IDENTIFIER ON
  129. GO
  130. CREATE TABLE [dbo].[be_StopWords](
  131. [StopWord] [nvarchar](50) NOT NULL,
  132. CONSTRAINT [PK_be_StopWords] PRIMARY KEY CLUSTERED
  133. (
  134. [StopWord] ASC
  135. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  136. ) ON [PRIMARY]
  137. GO
  138. /****** Object: Table [dbo].[be_PostCategory] Script Date: 12/22/2007 14:17:00 ******/
  139. SET ANSI_NULLS ON
  140. GO
  141. SET QUOTED_IDENTIFIER ON
  142. GO
  143. CREATE TABLE [dbo].[be_PostCategory](
  144. [PostCategoryID] [int] IDENTITY(1,1) NOT NULL,
  145. [PostID] [uniqueidentifier] NOT NULL,
  146. [CategoryID] [uniqueidentifier] NOT NULL,
  147. CONSTRAINT [PK_be_PostCategory] PRIMARY KEY CLUSTERED
  148. (
  149. [PostCategoryID] ASC
  150. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  151. ) ON [PRIMARY]
  152. GO
  153. ALTER TABLE [dbo].[be_PostCategory] WITH CHECK ADD CONSTRAINT [FK_be_PostCategory_be_Categories] FOREIGN KEY([CategoryID])
  154. REFERENCES [dbo].[be_Categories] ([CategoryID])
  155. GO
  156. ALTER TABLE [dbo].[be_PostCategory] CHECK CONSTRAINT [FK_be_PostCategory_be_Categories]
  157. GO
  158. ALTER TABLE [dbo].[be_PostCategory] WITH CHECK ADD CONSTRAINT [FK_be_PostCategory_be_Posts] FOREIGN KEY([PostID])
  159. REFERENCES [dbo].[be_Posts] ([PostID])
  160. GO
  161. ALTER TABLE [dbo].[be_PostCategory] CHECK CONSTRAINT [FK_be_PostCategory_be_Posts]
  162. GO
  163. /****** Object: Table [dbo].[be_PostComment] Script Date: 12/22/2007 14:17:15 ******/
  164. SET ANSI_NULLS ON
  165. GO
  166. SET QUOTED_IDENTIFIER ON
  167. GO
  168. CREATE TABLE [dbo].[be_PostComment](
  169. [PostCommentID] [uniqueidentifier] ROWGUIDCOL NOT NULL CONSTRAINT [DF_be_PostComment_PostCommentID] DEFAULT (newid()),
  170. [PostID] [uniqueidentifier] NOT NULL,
  171. [ParentCommentID] [uniqueidentifier] NOT NULL DEFAULT ('00000000-0000-0000-0000-000000000000'),
  172. [CommentDate] [datetime] NOT NULL,
  173. [Author] [nvarchar](255) NULL,
  174. [Email] [nvarchar](255) NULL,
  175. [Website] [nvarchar](255) NULL,
  176. [Comment] [nvarchar](max) NULL,
  177. [Country] [nvarchar](255) NULL,
  178. [Ip] [nvarchar](50) NULL,
  179. [IsApproved] [bit] NULL,
  180. [ModeratedBy] [nvarchar](100) NULL,
  181. [Avatar] [nvarchar](255) NULL,
  182. [IsSpam] [bit] NOT NULL DEFAULT 0,
  183. [IsDeleted] [bit] NOT NULL DEFAULT 0,
  184. CONSTRAINT [PK_be_PostComment] PRIMARY KEY CLUSTERED
  185. (
  186. [PostCommentID] ASC
  187. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  188. ) ON [PRIMARY]
  189. GO
  190. ALTER TABLE [dbo].[be_PostComment] WITH CHECK ADD CONSTRAINT [FK_be_PostComment_be_Posts] FOREIGN KEY([PostID])
  191. REFERENCES [dbo].[be_Posts] ([PostID])
  192. GO
  193. ALTER TABLE [dbo].[be_PostComment] CHECK CONSTRAINT [FK_be_PostComment_be_Posts]
  194. GO
  195. /****** Object: Table [dbo].[be_PostNotify] Script Date: 12/22/2007 14:17:31 ******/
  196. SET ANSI_NULLS ON
  197. GO
  198. SET QUOTED_IDENTIFIER ON
  199. GO
  200. CREATE TABLE [dbo].[be_PostNotify](
  201. [PostNotifyID] [int] IDENTITY(1,1) NOT NULL,
  202. [PostID] [uniqueidentifier] NOT NULL,
  203. [NotifyAddress] [nvarchar](255) NULL,
  204. CONSTRAINT [PK_be_PostNotify] PRIMARY KEY CLUSTERED
  205. (
  206. [PostNotifyID] ASC
  207. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  208. ) ON [PRIMARY]
  209. GO
  210. ALTER TABLE [dbo].[be_PostNotify] WITH CHECK ADD CONSTRAINT [FK_be_PostNotify_be_Posts] FOREIGN KEY([PostID])
  211. REFERENCES [dbo].[be_Posts] ([PostID])
  212. GO
  213. ALTER TABLE [dbo].[be_PostNotify] CHECK CONSTRAINT [FK_be_PostNotify_be_Posts]
  214. GO
  215. /****** Object: Table [dbo].[be_PostTag] Script Date: 12/22/2007 14:17:44 ******/
  216. SET ANSI_NULLS ON
  217. GO
  218. SET QUOTED_IDENTIFIER ON
  219. GO
  220. CREATE TABLE [dbo].[be_PostTag](
  221. [PostTagID] [int] IDENTITY(1,1) NOT NULL,
  222. [PostID] [uniqueidentifier] NOT NULL,
  223. [Tag] [nvarchar](50) NULL,
  224. CONSTRAINT [PK_be_PostTag] PRIMARY KEY CLUSTERED
  225. (
  226. [PostTagID] ASC
  227. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  228. ) ON [PRIMARY]
  229. GO
  230. ALTER TABLE [dbo].[be_PostTag] WITH CHECK ADD CONSTRAINT [FK_be_PostTag_be_Posts] FOREIGN KEY([PostID])
  231. REFERENCES [dbo].[be_Posts] ([PostID])
  232. GO
  233. ALTER TABLE [dbo].[be_PostTag] CHECK CONSTRAINT [FK_be_PostTag_be_Posts]
  234. GO
  235. /****** Object: Table [dbo].[be_Users] Script Date: 07/30/2008 21:55:28 ******/
  236. SET ANSI_NULLS ON
  237. GO
  238. SET QUOTED_IDENTIFIER ON
  239. GO
  240. CREATE TABLE [dbo].[be_Users](
  241. [UserID] [int] IDENTITY(1,1) NOT NULL,
  242. [UserName] [nvarchar](100) NOT NULL,
  243. [Password] [nvarchar](255) NOT NULL,
  244. [LastLoginTime] [datetime] NULL,
  245. [EmailAddress] [nvarchar](100) NULL,
  246. CONSTRAINT [PK_be_Users] PRIMARY KEY CLUSTERED
  247. (
  248. [UserID] ASC
  249. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  250. ) ON [PRIMARY]
  251. GO
  252. /****** Object: Table [dbo].[be_Roles] Script Date: 07/30/2008 21:56:59 ******/
  253. SET ANSI_NULLS ON
  254. GO
  255. SET QUOTED_IDENTIFIER ON
  256. GO
  257. CREATE TABLE [dbo].[be_Roles](
  258. [RoleID] [int] IDENTITY(1,1) NOT NULL,
  259. [Role] [nvarchar](100) NOT NULL,
  260. CONSTRAINT [PK_be_Roles] PRIMARY KEY CLUSTERED
  261. (
  262. [RoleID] ASC
  263. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  264. ) ON [PRIMARY]
  265. GO
  266. /****** Object: Table [dbo].[be_UserRoles] Script Date: 07/31/2008 12:26:45 ******/
  267. SET ANSI_NULLS ON
  268. GO
  269. SET QUOTED_IDENTIFIER ON
  270. GO
  271. CREATE TABLE [dbo].[be_UserRoles](
  272. [UserRoleID] [int] IDENTITY(1,1) NOT NULL,
  273. [UserID] [int] NOT NULL,
  274. [RoleID] [int] NOT NULL,
  275. CONSTRAINT [PK_be_UserRoles] PRIMARY KEY CLUSTERED
  276. (
  277. [UserRoleID] ASC
  278. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  279. ) ON [PRIMARY]
  280. GO
  281. ALTER TABLE [dbo].[be_UserRoles] WITH CHECK ADD CONSTRAINT [FK_be_UserRoles_be_Roles] FOREIGN KEY([RoleID])
  282. REFERENCES [dbo].[be_Roles] ([RoleID])
  283. GO
  284. ALTER TABLE [dbo].[be_UserRoles] CHECK CONSTRAINT [FK_be_UserRoles_be_Roles]
  285. GO
  286. ALTER TABLE [dbo].[be_UserRoles] WITH CHECK ADD CONSTRAINT [FK_be_UserRoles_be_Users] FOREIGN KEY([UserID])
  287. REFERENCES [dbo].[be_Users] ([UserID])
  288. GO
  289. ALTER TABLE [dbo].[be_UserRoles] CHECK CONSTRAINT [FK_be_UserRoles_be_Users]
  290. GO
  291. CREATE TABLE [dbo].[be_BlogRollItems](
  292. [BlogRollId] [uniqueidentifier] NOT NULL,
  293. [Title] [nvarchar](255) NOT NULL,
  294. [Description] [nvarchar](max) NULL,
  295. [BlogUrl] [varchar](255) NOT NULL,
  296. [FeedUrl] [varchar](255) NULL,
  297. [Xfn] [varchar](255) NULL,
  298. [SortIndex] [int] NOT NULL,
  299. CONSTRAINT [PK_be_BlogRollItems] PRIMARY KEY CLUSTERED
  300. (
  301. [BlogRollId] ASC
  302. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  303. ) ON [PRIMARY]
  304. GO
  305. CREATE TABLE [dbo].[be_Referrers](
  306. [ReferrerId] [uniqueidentifier] NOT NULL,
  307. [ReferralDay] [datetime] NOT NULL CONSTRAINT [DF_be_Referrers_Day] DEFAULT (getdate()),
  308. [ReferrerUrl] [varchar](255) NOT NULL,
  309. [ReferralCount] [int] NOT NULL,
  310. [Url] [varchar](255) NULL,
  311. [IsSpam] [bit] NULL,
  312. CONSTRAINT [PK_be_Referrers] PRIMARY KEY CLUSTERED
  313. (
  314. [ReferrerId] ASC
  315. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  316. ) ON [PRIMARY]
  317. GO
  318. CREATE TABLE [dbo].[be_Rights](
  319. [RightName] [nvarchar](100) NOT NULL,
  320. CONSTRAINT [PK_be_Rights] PRIMARY KEY CLUSTERED
  321. (
  322. [RightName] ASC
  323. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  324. ) ON [PRIMARY]
  325. GO
  326. CREATE TABLE [dbo].[be_RightRoles](
  327. [RightName] [nvarchar](100) NOT NULL,
  328. [Role] [nvarchar](100) NOT NULL,
  329. CONSTRAINT [PK_be_RightRoles] PRIMARY KEY CLUSTERED
  330. (
  331. [RightName] ASC,
  332. [Role] ASC
  333. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  334. ) ON [PRIMARY]
  335. GO
  336. /****** Object: Index [FK_PostID] Script Date: 12/22/2007 14:18:36 ******/
  337. CREATE NONCLUSTERED INDEX [FK_PostID] ON [dbo].[be_PostCategory]
  338. (
  339. [PostID] ASC
  340. )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]
  341. GO
  342. /****** Object: Index [FK_CategoryID] Script Date: 12/22/2007 14:19:19 ******/
  343. CREATE NONCLUSTERED INDEX [FK_CategoryID] ON [dbo].[be_PostCategory]
  344. (
  345. [CategoryID] ASC
  346. )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]
  347. GO
  348. /****** Object: Index [FK_PostID] Script Date: 12/22/2007 14:19:45 ******/
  349. CREATE NONCLUSTERED INDEX [FK_PostID] ON [dbo].[be_PostComment]
  350. (
  351. [PostID] ASC
  352. )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]
  353. GO
  354. /****** Object: Index [FK_PostID] Script Date: 12/22/2007 14:20:29 ******/
  355. CREATE NONCLUSTERED INDEX [FK_PostID] ON [dbo].[be_PostNotify]
  356. (
  357. [PostID] ASC
  358. )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]
  359. GO
  360. /****** Object: Index [FK_PostID] Script Date: 12/22/2007 14:20:43 ******/
  361. CREATE NONCLUSTERED INDEX [FK_PostID] ON [dbo].[be_PostTag]
  362. (
  363. [PostID] ASC
  364. )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]
  365. GO
  366. /****** Object: Index [I_TypeID] Script Date: 06/28/2008 19:34:43 ******/
  367. CREATE NONCLUSTERED INDEX [I_TypeID] ON [dbo].[be_DataStoreSettings]
  368. (
  369. [ExtensionType] ASC,
  370. [ExtensionId] ASC
  371. )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]
  372. GO
  373. /****** Object: Index [I_UserName] Script Date: 06/28/2008 19:35:12 ******/
  374. CREATE NONCLUSTERED INDEX [I_UserName] ON [dbo].[be_Profiles]
  375. (
  376. [UserName] ASC
  377. )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]
  378. GO
  379. /*** Load initial Data ***/
  380. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('administratorrole', 'Administrators');
  381. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('alternatefeedurl', '');
  382. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('authorname', 'My name');
  383. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('avatar', 'combine');
  384. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('blogrollmaxlength', '23');
  385. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('blogrollupdateminutes', '60');
  386. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('blogrollvisibleposts', '3');
  387. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('contactformmessage', '<p>I will answer the mail as soon as I can.</p>');
  388. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('contactthankmessage', '<h1>Thank you</h1><p>The message was sent.</p>');
  389. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('culture', 'Auto');
  390. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('dayscommentsareenabled', '0');
  391. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('description', 'Short description of the blog');
  392. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('displaycommentsonrecentposts', 'True');
  393. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('displayratingsonrecentposts', 'True');
  394. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('email', 'user@example.com');
  395. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('emailsubjectprefix', 'Weblog');
  396. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablecommentsearch', 'True');
  397. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablecommentsmoderation', 'False');
  398. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablecontactattachments', 'True');
  399. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablecountryincomments', 'True');
  400. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablehttpcompression', 'True');
  401. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enableopensearch', 'True');
  402. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablepingbackreceive', 'True');
  403. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablepingbacksend', 'True');
  404. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablerating', 'True');
  405. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablereferrertracking', 'False');
  406. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablerelatedposts', 'True');
  407. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enablessl', 'False');
  408. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enabletrackbackreceive', 'True');
  409. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('enabletrackbacksend', 'True');
  410. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('endorsement', 'http://www.dotnetblogengine.net/syndication.axd');
  411. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('fileextension', '.aspx');
  412. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('geocodinglatitude', '0');
  413. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('geocodinglongitude', '0');
  414. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('handlewwwsubdomain', '');
  415. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('iscocommentenabled', 'False');
  416. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('iscommentsenabled', 'True');
  417. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('language', 'en-GB');
  418. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('mobiletheme', 'Mobile');
  419. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('name', 'Name of the blog');
  420. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('numberofrecentcomments', '10');
  421. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('numberofrecentposts', '10');
  422. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('postsperfeed', '10');
  423. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('postsperpage', '10');
  424. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('removewhitespaceinstylesheets', 'True');
  425. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('searchbuttontext', 'Search');
  426. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('searchcommentlabeltext', 'Include comments in search');
  427. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('searchdefaulttext', 'Enter search term');
  428. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('sendmailoncomment', 'True');
  429. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('showdescriptioninpostlist', 'False');
  430. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('showlivepreview', 'True');
  431. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('showpostnavigation', 'True');
  432. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('smtppassword', 'password');
  433. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('smtpserver', 'mail.example.dk');
  434. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('smtpserverport', '25');
  435. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('smtpusername', 'user@example.com');
  436. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('storagelocation', '~/App_Data/');
  437. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('syndicationformat', 'Rss');
  438. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('theme', 'Standard');
  439. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('timestamppostlinks', 'True');
  440. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('timezone', '-5');
  441. INSERT INTO be_Settings (SettingName, SettingValue) VALUES ('trackingscript', '');
  442. INSERT INTO be_PingService (Link) VALUES ('http://rpc.technorati.com/rpc/ping');
  443. INSERT INTO be_PingService (Link) VALUES ('http://rpc.pingomatic.com/rpc2');
  444. INSERT INTO be_PingService (Link) VALUES ('http://ping.feedburner.com');
  445. INSERT INTO be_PingService (Link) VALUES ('http://www.bloglines.com/ping');
  446. INSERT INTO be_PingService (Link) VALUES ('http://services.newsgator.com/ngws/xmlrpcping.aspx');
  447. INSERT INTO be_PingService (Link) VALUES ('http://api.my.yahoo.com/rpc2 ');
  448. INSERT INTO be_PingService (Link) VALUES ('http://blogsearch.google.com/ping/RPC2');
  449. INSERT INTO be_PingService (Link) VALUES ('http://rpc.pingthesemanticweb.com/');
  450. INSERT INTO be_StopWords (StopWord) VALUES ('a');
  451. INSERT INTO be_StopWords (StopWord) VALUES ('about');
  452. INSERT INTO be_StopWords (StopWord) VALUES ('actually');
  453. INSERT INTO be_StopWords (StopWord) VALUES ('add');
  454. INSERT INTO be_StopWords (StopWord) VALUES ('after');
  455. INSERT INTO be_StopWords (StopWord) VALUES ('all');
  456. INSERT INTO be_StopWords (StopWord) VALUES ('almost');
  457. INSERT INTO be_StopWords (StopWord) VALUES ('along');
  458. INSERT INTO be_StopWords (StopWord) VALUES ('also');
  459. INSERT INTO be_StopWords (StopWord) VALUES ('an');
  460. INSERT INTO be_StopWords (StopWord) VALUES ('and');
  461. INSERT INTO be_StopWords (StopWord) VALUES ('any');
  462. INSERT INTO be_StopWords (StopWord) VALUES ('are');
  463. INSERT INTO be_StopWords (StopWord) VALUES ('as');
  464. INSERT INTO be_StopWords (StopWord) VALUES ('at');
  465. INSERT INTO be_StopWords (StopWord) VALUES ('be');
  466. INSERT INTO be_StopWords (StopWord) VALUES ('both');
  467. INSERT INTO be_StopWords (StopWord) VALUES ('but');
  468. INSERT INTO be_StopWords (StopWord) VALUES ('by');
  469. INSERT INTO be_StopWords (StopWord) VALUES ('can');
  470. INSERT INTO be_StopWords (StopWord) VALUES ('cannot');
  471. INSERT INTO be_StopWords (StopWord) VALUES ('com');
  472. INSERT INTO be_StopWords (StopWord) VALUES ('could');
  473. INSERT INTO be_StopWords (StopWord) VALUES ('de');
  474. INSERT INTO be_StopWords (StopWord) VALUES ('do');
  475. INSERT INTO be_StopWords (StopWord) VALUES ('down');
  476. INSERT INTO be_StopWords (StopWord) VALUES ('each');
  477. INSERT INTO be_StopWords (StopWord) VALUES ('either');
  478. INSERT INTO be_StopWords (StopWord) VALUES ('en');
  479. INSERT INTO be_StopWords (StopWord) VALUES ('for');
  480. INSERT INTO be_StopWords (StopWord) VALUES ('from');
  481. INSERT INTO be_StopWords (StopWord) VALUES ('good');
  482. INSERT INTO be_StopWords (StopWord) VALUES ('has');
  483. INSERT INTO be_StopWords (StopWord) VALUES ('have');
  484. INSERT INTO be_StopWords (StopWord) VALUES ('he');
  485. INSERT INTO be_StopWords (StopWord) VALUES ('her');
  486. INSERT INTO be_StopWords (StopWord) VALUES ('here');
  487. INSERT INTO be_StopWords (StopWord) VALUES ('hers');
  488. INSERT INTO be_StopWords (StopWord) VALUES ('his');
  489. INSERT INTO be_StopWords (StopWord) VALUES ('how');
  490. INSERT INTO be_StopWords (StopWord) VALUES ('i');
  491. INSERT INTO be_StopWords (StopWord) VALUES ('if');
  492. INSERT INTO be_StopWords (StopWord) VALUES ('in');
  493. INSERT INTO be_StopWords (StopWord) VALUES ('into');
  494. INSERT INTO be_StopWords (StopWord) VALUES ('is');
  495. INSERT INTO be_StopWords (StopWord) VALUES ('it');
  496. INSERT INTO be_StopWords (StopWord) VALUES ('its');
  497. INSERT INTO be_StopWords (StopWord) VALUES ('just');
  498. INSERT INTO be_StopWords (StopWord) VALUES ('la');
  499. INSERT INTO be_StopWords (StopWord) VALUES ('like');
  500. INSERT INTO be_StopWords (StopWord) VALUES ('long');
  501. INSERT INTO be_StopWords (StopWord) VALUES ('make');
  502. INSERT INTO be_StopWords (StopWord) VALUES ('me');
  503. INSERT INTO be_StopWords (StopWord) VALUES ('more');
  504. INSERT INTO be_StopWords (StopWord) VALUES ('much');
  505. INSERT INTO be_StopWords (StopWord) VALUES ('my');
  506. INSERT INTO be_StopWords (StopWord) VALUES ('need');
  507. INSERT INTO be_StopWords (StopWord) VALUES ('new');
  508. INSERT INTO be_StopWords (StopWord) VALUES ('now');
  509. INSERT INTO be_StopWords (StopWord) VALUES ('of');
  510. INSERT INTO be_StopWords (StopWord) VALUES ('off');
  511. INSERT INTO be_StopWords (StopWord) VALUES ('on');
  512. INSERT INTO be_StopWords (StopWord) VALUES ('once');
  513. INSERT INTO be_StopWords (StopWord) VALUES ('one');
  514. INSERT INTO be_StopWords (StopWord) VALUES ('ones');
  515. INSERT INTO be_StopWords (StopWord) VALUES ('only');
  516. INSERT INTO be_StopWords (StopWord) VALUES ('or');
  517. INSERT INTO be_StopWords (StopWord) VALUES ('our');
  518. INSERT INTO be_StopWords (StopWord) VALUES ('out');
  519. INSERT INTO be_StopWords (StopWord) VALUES ('over');
  520. INSERT INTO be_StopWords (StopWord) VALUES ('own');
  521. INSERT INTO be_StopWords (StopWord) VALUES ('really');
  522. INSERT INTO be_StopWords (StopWord) VALUES ('right');
  523. INSERT INTO be_StopWords (StopWord) VALUES ('same');
  524. INSERT INTO be_StopWords (StopWord) VALUES ('see');
  525. INSERT INTO be_StopWords (StopWord) VALUES ('she');
  526. INSERT INTO be_StopWords (StopWord) VALUES ('so');
  527. INSERT INTO be_StopWords (StopWord) VALUES ('some');
  528. INSERT INTO be_StopWords (StopWord) VALUES ('such');
  529. INSERT INTO be_StopWords (StopWord) VALUES ('take');
  530. INSERT INTO be_StopWords (StopWord) VALUES ('takes');
  531. INSERT INTO be_StopWords (StopWord) VALUES ('that');
  532. INSERT INTO be_StopWords (StopWord) VALUES ('the');
  533. INSERT INTO be_StopWords (StopWord) VALUES ('their');
  534. INSERT INTO be_StopWords (StopWord) VALUES ('these');
  535. INSERT INTO be_StopWords (StopWord) VALUES ('thing');
  536. INSERT INTO be_StopWords (StopWord) VALUES ('this');
  537. INSERT INTO be_StopWords (StopWord) VALUES ('to');
  538. INSERT INTO be_StopWords (StopWord) VALUES ('too');
  539. INSERT INTO be_StopWords (StopWord) VALUES ('took');
  540. INSERT INTO be_StopWords (StopWord) VALUES ('und');
  541. INSERT INTO be_StopWords (StopWord) VALUES ('up');
  542. INSERT INTO be_StopWords (StopWord) VALUES ('use');
  543. INSERT INTO be_StopWords (StopWord) VALUES ('used');
  544. INSERT INTO be_StopWords (StopWord) VALUES ('using');
  545. INSERT INTO be_StopWords (StopWord) VALUES ('very');
  546. INSERT INTO be_StopWords (StopWord) VALUES ('was');
  547. INSERT INTO be_StopWords (StopWord) VALUES ('we');
  548. INSERT INTO be_StopWords (StopWord) VALUES ('well');
  549. INSERT INTO be_StopWords (StopWord) VALUES ('what');
  550. INSERT INTO be_StopWords (StopWord) VALUES ('when');
  551. INSERT INTO be_StopWords (StopWord) VALUES ('where');
  552. INSERT INTO be_StopWords (StopWord) VALUES ('who');
  553. INSERT INTO be_StopWords (StopWord) VALUES ('will');
  554. INSERT INTO be_StopWords (StopWord) VALUES ('with');
  555. INSERT INTO be_StopWords (StopWord) VALUES ('www');
  556. INSERT INTO be_StopWords (StopWord) VALUES ('you');
  557. INSERT INTO be_StopWords (StopWord) VALUES ('your');
  558. INSERT INTO be_BlogRollItems ( BlogRollId, Title, [Description], BlogUrl, FeedUrl, Xfn, SortIndex )
  559. 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 );
  560. INSERT INTO be_BlogRollItems ( BlogRollId, Title, [Description], BlogUrl, FeedUrl, Xfn, SortIndex )
  561. 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 );
  562. INSERT INTO be_BlogRollItems ( BlogRollId, Title, [Description], BlogUrl, FeedUrl, Xfn, SortIndex )
  563. 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 );
  564. INSERT INTO be_BlogRollItems ( BlogRollId, Title, [Description], BlogUrl, FeedUrl, Xfn, SortIndex )
  565. 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 );
  566. INSERT INTO be_BlogRollItems ( BlogRollId, Title, [Description], BlogUrl, FeedUrl, Xfn, SortIndex )
  567. 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 );
  568. INSERT INTO be_BlogRollItems ( BlogRollId, Title, [Description], BlogUrl, FeedUrl, Xfn, SortIndex )
  569. VALUES ( '890f00e5-3a86-4cba-b85b-104063964a87', 'Ben Amada', 'adventures in application development', 'http://allben.net/', 'http://feeds.feedburner.com/allben', 'contact', 5 );
  570. DECLARE @postID uniqueidentifier, @catID uniqueidentifier;
  571. SET @postID = NEWID();
  572. SET @catID = NEWID();
  573. INSERT INTO be_Categories (CategoryID, CategoryName)
  574. VALUES (@catID, 'General');
  575. INSERT INTO be_Posts (PostID, Title, Description, PostContent, DateCreated, Author, IsPublished)
  576. VALUES (@postID,
  577. 'Welcome to BlogEngine.NET 2.0 using Microsoft SQL Server',
  578. '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',
  579. '<p>If you see this post it means that BlogEngine.NET 2.0 is running and the hard part of creating your own blog is done. There is only a few things left to do.</p>
  580. <h2>Write Permissions</h2>
  581. <p>To be able to log in to the blog and writing posts, you need to enable write permissions on the App_Data folder. If you&rsquo;re blog is hosted at a hosting provider, you can either log into your account&rsquo;s admin page or call the support. You need write permissions on the App_Data folder because all posts, comments, and blog attachments are saved as XML files and placed in the App_Data folder.&nbsp;</p>
  582. <p>If you wish to use a database to to store your blog data, we still encourage you to enable this write access for an images you may wish to store for your blog posts.&nbsp; If you are interested in using Microsoft SQL Server, MySQL, SQL CE, or other databases, please see the <a href="http://blogengine.codeplex.com/documentation">BlogEngine wiki</a> to get started.</p>
  583. <h2>Security</h2>
  584. <p>When you''ve got write permissions to the App_Data folder, you need to change the username and password. 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.&nbsp; Passwords are hashed by default so if you lose your password, please see the <a href="http://blogengine.codeplex.com/documentation">BlogEngine wiki</a> for information on recovery.</p>
  585. <h2>Configuration and Profile</h2>
  586. <p>Now that you have your blog secured, take a look through the settings and give your new blog a title.&nbsp; BlogEngine.NET 1.4 is set up to take full advantage of of many semantic formats and technologies such as FOAF, SIOC and APML. It means that the content stored in your BlogEngine.NET installation will be fully portable and auto-discoverable.&nbsp; Be sure to fill in your author profile to take better advantage of this.</p>
  587. <h2>Themes and Widgets</h2>
  588. <p>One last thing to consider is customizing the look of your blog.&nbsp; We have a few themes available right out of the box including two fully setup to use our new widget framework.&nbsp; The widget framework allows drop and drag placement on your side bar as well as editing and configuration right in the widget while you are logged in.&nbsp; Be sure to check out <a href="http://dotnetblogengine.net">our home page</a> for more theme choices and downloadable widgets to add to your blog.</p>
  589. <h2>Try Out New Features</h2>
  590. <p>BlogEngine now supports code syntax highlighting and HTML5 video out of the box. To add a video, click the "Insert video" button just above the post editor. Once your video is uploaded, use the following syntax to show it: [&shy;video src="be-sample.mp4"]. Make sure to add "video/mp4" as a MIME type to your IIS.</p>
  591. <p>[video src="http://dotnetblogengine.net/media/blogengine-welcome.mp4" type="video/mp4" width="600" height="480"]</p>
  592. <p>You can add formatted code by pressing the "Insert Code" button on the post editor toolbar. Here is a small sample:</p>
  593. <pre class="brush: c-sharp;">// Hello1.cs
  594. public class Hello1
  595. {
  596. public static void Main()
  597. {
  598. System.Console.WriteLine("Hello, World!");
  599. }
  600. }</pre>
  601. <p>&nbsp;</p>
  602. <h2>On the web</h2>
  603. <p>You can find BlogEngine.NET on the <a href="http://www.dotnetblogengine.net">official website</a>. Here you''ll 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>
  604. <p>Good luck and happy writing.</p>
  605. <p>The BlogEngine.NET team</p>',
  606. GETDATE(),
  607. 'admin',
  608. 1);
  609. INSERT INTO be_PostCategory (PostID, CategoryID)
  610. VALUES (@postID, @catID);
  611. INSERT INTO be_PostTag (PostID, Tag)
  612. VALUES (@postID, 'blog');
  613. INSERT INTO be_PostTag (PostID, Tag)
  614. VALUES (@postID, 'welcome');
  615. INSERT INTO be_Users (UserName, Password, LastLoginTime, EmailAddress)
  616. VALUES ('Admin', '', GETDATE(), 'email@example.com');
  617. INSERT INTO be_Roles (Role)
  618. VALUES ('Administrators');
  619. INSERT INTO be_Roles (Role)
  620. VALUES ('Editors');
  621. INSERT INTO be_UserRoles (UserID, RoleID)
  622. VALUES (1, 1);
  623. INSERT INTO be_DataStoreSettings (ExtensionType, ExtensionId, Settings)
  624. VALUES (1, 'be_WIDGET_ZONE',
  625. '<?xml version="1.0" encoding="utf-16"?>
  626. <WidgetData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  627. <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>
  628. </WidgetData>');
  629. GO