Skip to content

Commit

Permalink
update sql
Browse files Browse the repository at this point in the history
  • Loading branch information
JFriel committed Oct 18, 2024
1 parent 07b20c5 commit dc4ea40
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1400,23 +1400,23 @@ CONSTRAINT [PK_RegexRedactionKey] PRIMARY KEY CLUSTERED
END
GO

if not exists (select 1 from sys.tables where name = 'DatasetProviderConfiguration')
BEGIN
CREATE TABLE [dbo].[DatasetProviderConfiguration](
[ID] [int] IDENTITY(1,1) NOT NULL,
Type [nvarchar](256) NOT NULL,
Url [nvarchar](500) NOT NULL,
Name [nvarchar](256) NOT NULL,
DataAccessCredentials_ID [int] NOT NULL,
Organisation_ID [nvarchar](256) NOT NULL
CONSTRAINT FK_DatasetProviderConfiguration_DataAccessCredentials FOREIGN KEY (DataAccessCredentials_ID) REFERENCES DataAccessCredentials(ID) ON DELETE CASCADE,
CONSTRAINT [PK_DatasetProviderConfiguration] PRIMARY KEY CLUSTERED
(
[ID] ASC
)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 1 from sys.tables where name = 'DatasetProviderConfiguration')
--BEGIN
--CREATE TABLE [dbo].[DatasetProviderConfiguration](
-- [ID] [int] IDENTITY(1,1) NOT NULL,
-- Type [nvarchar](256) NOT NULL,
-- Url [nvarchar](500) NOT NULL,
-- Name [nvarchar](256) NOT NULL,
-- DataAccessCredentials_ID [int] NOT NULL,
-- Organisation_ID [nvarchar](256) NOT NULL
-- CONSTRAINT FK_DatasetProviderConfiguration_DataAccessCredentials FOREIGN KEY (DataAccessCredentials_ID) REFERENCES DataAccessCredentials(ID) ON DELETE CASCADE,
--CONSTRAINT [PK_DatasetProviderConfiguration] PRIMARY KEY CLUSTERED
--(
-- [ID] ASC
--)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



Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
if not exists (select 1 from sys.tables where name = 'DatasetProviderConfiguration')
--Version: 8.4.0.0
--Description: Adds the ability to store configuration to talk to remote dataset stores

if not exists (select 1 from sys.tables where name = 'DatasetProviderConfiguration')
BEGIN
CREATE TABLE [dbo].[DatasetProviderConfiguration](
[ID] [int] IDENTITY(1,1) NOT NULL,
Expand Down

0 comments on commit dc4ea40

Please sign in to comment.