diff --git a/Rdmp.Core/Databases/CatalogueDatabase/runAfterCreateDatabase/CreateCatalogue.sql b/Rdmp.Core/Databases/CatalogueDatabase/runAfterCreateDatabase/CreateCatalogue.sql index ede034806b..041f55be50 100644 --- a/Rdmp.Core/Databases/CatalogueDatabase/runAfterCreateDatabase/CreateCatalogue.sql +++ b/Rdmp.Core/Databases/CatalogueDatabase/runAfterCreateDatabase/CreateCatalogue.sql @@ -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 diff --git a/Rdmp.Core/Databases/CatalogueDatabase/up/089_AddDatasetProviderConfiguration.sql b/Rdmp.Core/Databases/CatalogueDatabase/up/089_AddDatasetProviderConfiguration.sql index a2eaac297f..23a226b60c 100644 --- a/Rdmp.Core/Databases/CatalogueDatabase/up/089_AddDatasetProviderConfiguration.sql +++ b/Rdmp.Core/Databases/CatalogueDatabase/up/089_AddDatasetProviderConfiguration.sql @@ -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,