Skip to content

Commit

Permalink
Divide database on two
Browse files Browse the repository at this point in the history
  • Loading branch information
kszabelski committed Aug 19, 2015
1 parent f7b2def commit 8ac0925
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
10 changes: 10 additions & 0 deletions 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
3 changes: 3 additions & 0 deletions CreateLocalDatabase.sql
@@ -1,2 +1,5 @@
CREATE DATABASE [MarketManagementServiceDb]
GO

CREATE DATABASE [AnalyticsServiceServiceDb]
GO
Expand Up @@ -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
2 changes: 1 addition & 1 deletion MarketFinder.CommonHost/Web.config
Expand Up @@ -10,7 +10,7 @@
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></configSections>
<connectionStrings>
<add name="MarketManagementServiceDb" connectionString="Data Source=(localdb)\v11.0; Initial Catalog=MarketManagementServiceDb; Integrated Security=True; MultipleActiveResultSets=True;" providerName="System.Data.SqlClient" />
<add name="RecommendationsDb" connectionString="Data Source=(localdb)\v11.0; Initial Catalog=MarketManagementServiceDb; Integrated Security=True; MultipleActiveResultSets=True;" providerName="System.Data.SqlClient" />
<add name="RecommendationsDb" connectionString="Data Source=(localdb)\v11.0; Initial Catalog=AnalyticsServiceServiceDb; Integrated Security=True; MultipleActiveResultSets=True;" providerName="System.Data.SqlClient" />
</connectionStrings>
<appSettings></appSettings>
<system.web>
Expand Down

0 comments on commit 8ac0925

Please sign in to comment.