diff --git a/Huppy/Huppy.App/Huppy.App.csproj b/Huppy/Huppy.App/Huppy.App.csproj
index 7bc2c14..c5f152e 100644
--- a/Huppy/Huppy.App/Huppy.App.csproj
+++ b/Huppy/Huppy.App/Huppy.App.csproj
@@ -9,6 +9,7 @@
runtime; build; native; contentfiles; analyzers; buildtransitive
all
+
diff --git a/Huppy/Huppy.App/HuppyHostedService.cs b/Huppy/Huppy.App/HuppyHostedService.cs
index 8577684..3879bf7 100644
--- a/Huppy/Huppy.App/HuppyHostedService.cs
+++ b/Huppy/Huppy.App/HuppyHostedService.cs
@@ -77,6 +77,13 @@ public Task StopAsync(CancellationToken cancellationToken)
public async Task CreateDatabase()
{
_logger.LogInformation("Verifying database");
+
+ if (_dbContext.Database.IsInMemory())
+ {
+ _logger.LogInformation("Database in memory, skipping migration");
+ return;
+ }
+
await _dbContext.Database.MigrateAsync();
}
diff --git a/Huppy/Huppy.Tests/Huppy.IntegrationTests/Data/UserData.cs b/Huppy/Huppy.Tests/Huppy.IntegrationTests/Data/UserData.cs
index f2fc50d..fc077d3 100644
--- a/Huppy/Huppy.Tests/Huppy.IntegrationTests/Data/UserData.cs
+++ b/Huppy/Huppy.Tests/Huppy.IntegrationTests/Data/UserData.cs
@@ -1,4 +1,5 @@
using Huppy.Core.Models;
+using Huppy.Tests.Utilities;
using System;
using System.Collections;
using System.Collections.Generic;
@@ -12,15 +13,58 @@ public class UserData : IEnumerable