Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tsi1-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rodrigo Sastre Marotta
tsi1-backend
Commits
79d0017a
Commit
79d0017a
authored
4 years ago
by
Lucca Santangelo
Browse files
Options
Downloads
Patches
Plain Diff
fix cloud migrations
parent
68a42ced
No related branches found
Branches containing commit
No related tags found
1 merge request
!26
Develop
Pipeline
#10313
passed
4 years ago
Stage: external
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tsi1.Api/Tsi1.DataLayer/DesignTimeDbContextFactory.cs
+4
-1
4 additions, 1 deletion
Tsi1.Api/Tsi1.DataLayer/DesignTimeDbContextFactory.cs
with
4 additions
and
1 deletion
Tsi1.Api/Tsi1.DataLayer/DesignTimeDbContextFactory.cs
+
4
−
1
View file @
79d0017a
...
...
@@ -17,8 +17,11 @@ namespace Tsi1.DataLayer
.
AddJsonFile
(
@Directory
.
GetCurrentDirectory
()
+
"/../Tsi1.Api/appsettings.json"
)
.
Build
();
var
isElasticCloud
=
bool
.
Parse
(
configuration
.
GetSection
(
"IsElasticCloud"
).
Value
);
var
databaseSection
=
isElasticCloud
?
"PostgreSqlCloud"
:
"PostgreSql"
;
var
connectionString
=
configuration
.
GetConnectionString
(
databaseSection
);
var
builder
=
new
DbContextOptionsBuilder
<
Tsi1Context
>();
var
connectionString
=
configuration
.
GetConnectionString
(
"PostgreSql"
);
builder
.
UseNpgsql
(
connectionString
);
return
new
Tsi1Context
(
builder
.
Options
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment