Initial commit
This commit is contained in:
44
Server/SqlScripts/Upgrade.SqlDataProvider
Normal file
44
Server/SqlScripts/Upgrade.SqlDataProvider
Normal file
@@ -0,0 +1,44 @@
|
||||
/******* SPROCS *******/
|
||||
/******* VIEWS AND FUNCTIONS *******/
|
||||
DROP VIEW IF EXISTS {databaseOwner}{objectQualifier}vw_B2M_InMemoriam_Stories
|
||||
GO
|
||||
|
||||
DROP VIEW IF EXISTS {databaseOwner}{objectQualifier}vw_B2M_InMemoriam_Pictures
|
||||
GO
|
||||
|
||||
/******* TRIGGERS *******/
|
||||
/******* TYPES *******/
|
||||
/******* TYPES *******/
|
||||
/******* TRIGGERS *******/
|
||||
/******* VIEWS AND FUNCTIONS *******/
|
||||
SET ANSI_NULLS ON
|
||||
GO
|
||||
SET QUOTED_IDENTIFIER ON
|
||||
GO
|
||||
CREATE VIEW {databaseOwner}{objectQualifier}vw_B2M_InMemoriam_Pictures
|
||||
AS
|
||||
SELECT
|
||||
p.*,
|
||||
cu.DisplayName CreatedByUser,
|
||||
mu.DisplayName LastModifiedByUser
|
||||
FROM {databaseOwner}{objectQualifier}B2M_InMemoriam_Pictures p
|
||||
LEFT JOIN {databaseOwner}{objectQualifier}Users cu ON cu.UserID=p.CreatedByUserID
|
||||
LEFT JOIN {databaseOwner}{objectQualifier}Users mu ON mu.UserID=p.LastModifiedByUserID
|
||||
GO
|
||||
|
||||
SET ANSI_NULLS ON
|
||||
GO
|
||||
SET QUOTED_IDENTIFIER ON
|
||||
GO
|
||||
CREATE VIEW {databaseOwner}{objectQualifier}vw_B2M_InMemoriam_Stories
|
||||
AS
|
||||
SELECT
|
||||
s.*,
|
||||
cu.DisplayName CreatedByUser,
|
||||
mu.DisplayName LastModifiedByUser
|
||||
FROM {databaseOwner}{objectQualifier}B2M_InMemoriam_Stories s
|
||||
LEFT JOIN {databaseOwner}{objectQualifier}Users cu ON cu.UserID=s.CreatedByUserID
|
||||
LEFT JOIN {databaseOwner}{objectQualifier}Users mu ON mu.UserID=s.LastModifiedByUserID
|
||||
GO
|
||||
|
||||
/******* SPROCS *******/
|
||||
Reference in New Issue
Block a user