Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAxelander committed Sep 4, 2024
1 parent 0811726 commit 1bb0692
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions OpenBudgeteer.Core.Data/DbContextOptionsFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ private static void SetupMariaDbConnection(DbContextOptionsBuilder optionsBuilde
Password = configuration.GetValue(ConfigurationKeyConstants.CONNECTION_PASSWORD, userName),
ConnectionProtocol = MySqlConnectionProtocol.Tcp
};

Console.WriteLine(builder.ConnectionString);

var serverVersion = ServerVersion.AutoDetect(builder.ConnectionString);
optionsBuilder.UseMySql(
Expand Down
2 changes: 2 additions & 0 deletions OpenBudgeteer.Core.Test/Tests/Database/BaseDatabaseTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ protected static DbContextOptions<DatabaseContext> MariaDbContextOptions
[ConfigurationKeyConstants.CONNECTION_DATABASE] = Environment.GetEnvironmentVariable(ConfigurationKeyConstants.CONNECTION_DATABASE) ?? "openbudgeteer_unit_test",
}!)
.Build();

Console.WriteLine($"CHECK THIS: {configuration.GetValue<string>(ConfigurationKeyConstants.CONNECTION_SERVER)}");
var contextOptions = DbContextOptionsFactory.GetContextOptions(configuration);
var dbContext = new DatabaseContext(contextOptions);
dbContext.Database.Migrate();
Expand Down

0 comments on commit 1bb0692

Please sign in to comment.