Skip to content

Commit

Permalink
Changed POSTGRESQLCONNSTR_Portal to POSTGRESQLCONNSTR_Faktur. (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
Utar94 authored Oct 23, 2024
1 parent 4e9d755 commit e949795
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Faktur.EntityFrameworkCore.PostgreSQL;

public static class DependencyInjectionExtensions
{
private const string ConfigurationKey = "POSTGRESQLCONNSTR_Portal";
private const string ConfigurationKey = "POSTGRESQLCONNSTR_Faktur";

public static IServiceCollection AddFakturWithEntityFrameworkCorePostgreSQL(this IServiceCollection services, IConfiguration configuration)
{
Expand Down
2 changes: 1 addition & 1 deletion backend/src/Faktur/appsettings.Development.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
"Password": "P@s$W0rD"
}
},
"POSTGRESQLCONNSTR_Portal": "User ID=postgres;Password=DMLK38Et6GBgJeWZ;Host=host.docker.internal;Port=5439;Database=Faktur;",
"POSTGRESQLCONNSTR_Faktur": "User ID=postgres;Password=DMLK38Et6GBgJeWZ;Host=host.docker.internal;Port=5439;Database=Faktur;",
"SQLCONNSTR_Faktur": "Server=host.docker.internal,1439;Database=Faktur;User Id=SA;Password=vs6J2jUWZTFnacMt;Persist Security Info=False;Encrypt=False;"
}
2 changes: 1 addition & 1 deletion backend/tests/Faktur.IntegrationTests/IntegrationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected IntegrationTests()
switch (_databaseProvider)
{
case DatabaseProvider.EntityFrameworkCorePostgreSQL:
connectionString = configuration.GetValue<string>("POSTGRESQLCONNSTR_Portal")?.Replace("{Database}", GetType().Name) ?? string.Empty;
connectionString = configuration.GetValue<string>("POSTGRESQLCONNSTR_Faktur")?.Replace("{Database}", GetType().Name) ?? string.Empty;
services.AddFakturWithEntityFrameworkCorePostgreSQL(connectionString);
break;
case DatabaseProvider.EntityFrameworkCoreSqlServer:
Expand Down
2 changes: 1 addition & 1 deletion backend/tests/Faktur.IntegrationTests/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"EnableMigrations": true,
"POSTGRESQLCONNSTR_Portal": "User ID=postgres;Password=DMLK38Et6GBgJeWZ;Host=host.docker.internal;Port=5439;Database={Database};",
"POSTGRESQLCONNSTR_Faktur": "User ID=postgres;Password=DMLK38Et6GBgJeWZ;Host=host.docker.internal;Port=5439;Database={Database};",
"SQLCONNSTR_Faktur": "Server=host.docker.internal,1439;Database={Database};User Id=SA;Password=vs6J2jUWZTFnacMt;Persist Security Info=False;Encrypt=False;"
}
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.8"
name: faktur
services:
faktur_mssql:
Expand Down

0 comments on commit e949795

Please sign in to comment.