From 8ac092531a4acc1a03824bab80051a9ea9669759 Mon Sep 17 00:00:00 2001 From: Krzysztof Szabelski Date: Wed, 19 Aug 2015 19:31:58 +0200 Subject: [PATCH] Divide database on two --- CreateAnalyticsServiceServiceDbTables.sql | 10 ++++++++++ CreateLocalDatabase.sql | 3 +++ ...s.sql => CreateMarketManagementServiceDbTables.sql | 11 ----------- MarketFinder.CommonHost/Web.config | 2 +- 4 files changed, 14 insertions(+), 12 deletions(-) create mode 100644 CreateAnalyticsServiceServiceDbTables.sql rename CreateDatabaseTables.sql => CreateMarketManagementServiceDbTables.sql (69%) diff --git a/CreateAnalyticsServiceServiceDbTables.sql b/CreateAnalyticsServiceServiceDbTables.sql new file mode 100644 index 0000000..35d8875 --- /dev/null +++ b/CreateAnalyticsServiceServiceDbTables.sql @@ -0,0 +1,10 @@ +CREATE TABLE [dbo].[Recommendations]( + [Id] [int] IDENTITY(1,1) NOT NULL, + [UserEmail] [nvarchar](max) NOT NULL, + [MarketId] [int] NOT NULL, + CONSTRAINT [PK_Recommendations] PRIMARY KEY CLUSTERED +( + [Id] ASC +) +) +GO \ No newline at end of file diff --git a/CreateLocalDatabase.sql b/CreateLocalDatabase.sql index 788f563..8f4c427 100644 --- a/CreateLocalDatabase.sql +++ b/CreateLocalDatabase.sql @@ -1,2 +1,5 @@ CREATE DATABASE [MarketManagementServiceDb] GO + +CREATE DATABASE [AnalyticsServiceServiceDb] +GO diff --git a/CreateDatabaseTables.sql b/CreateMarketManagementServiceDbTables.sql similarity index 69% rename from CreateDatabaseTables.sql rename to CreateMarketManagementServiceDbTables.sql index a81ebe9..cdd007c 100644 --- a/CreateDatabaseTables.sql +++ b/CreateMarketManagementServiceDbTables.sql @@ -22,14 +22,3 @@ CREATE TABLE [dbo].[Ratings]( ) ) GO - -CREATE TABLE [dbo].[Recommendations]( - [Id] [int] IDENTITY(1,1) NOT NULL, - [UserEmail] [nvarchar](max) NOT NULL, - [MarketId] [int] NOT NULL, - CONSTRAINT [PK_Recommendations] PRIMARY KEY CLUSTERED -( - [Id] ASC -) -) -GO \ No newline at end of file diff --git a/MarketFinder.CommonHost/Web.config b/MarketFinder.CommonHost/Web.config index 53a87a0..41d5cee 100644 --- a/MarketFinder.CommonHost/Web.config +++ b/MarketFinder.CommonHost/Web.config @@ -10,7 +10,7 @@ - +