Skip to content

Commit

Permalink
Merge pull request #60 from DNNCommunity/release/1.3.0
Browse files Browse the repository at this point in the history
Merge `release/1.3.0` into `main` for `1.3.0` release
  • Loading branch information
david-poindexter authored Feb 5, 2024
2 parents 790fd08 + b69baca commit 9c63cba
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Scripts/01.03.00.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[CommunityMetrics_UserActivityLinks]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[CommunityMetrics_UserActivityLinks](
[id] [bigint] IDENTITY(1,1) NOT NULL,
[user_activity_id] [bigint] NOT NULL,
Expand All @@ -12,16 +12,15 @@ CREATE TABLE [dbo].[CommunityMetrics_UserActivityLinks](
CONSTRAINT [PK_CommunityMetrics_UserActivityLinks] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO

IF NOT EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_CommunityMetrics_UserActivityLinks_CommunityMetrics_UserActivity]') AND parent_object_id = OBJECT_ID(N'[dbo].[CommunityMetrics_UserActivityLinks]'))
ALTER TABLE [dbo].[CommunityMetrics_UserActivityLinks] WITH CHECK ADD CONSTRAINT [FK_CommunityMetrics_UserActivityLinks_CommunityMetrics_UserActivity] FOREIGN KEY([user_activity_id])
REFERENCES [dbo].[CommunityMetrics_UserActivity] ([id])
ON DELETE CASCADE
GO

IF EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_CommunityMetrics_UserActivityLinks_CommunityMetrics_UserActivity]') AND parent_object_id = OBJECT_ID(N'[dbo].[CommunityMetrics_UserActivityLinks]'))
ALTER TABLE [dbo].[CommunityMetrics_UserActivityLinks] CHECK CONSTRAINT [FK_CommunityMetrics_UserActivityLinks_CommunityMetrics_UserActivity]
GO


0 comments on commit 9c63cba

Please sign in to comment.