diff --git a/src/HeartTrackAPI/AppBootstrap.cs b/src/HeartTrackAPI/AppBootstrap.cs index 41a428b..c8e3603 100644 --- a/src/HeartTrackAPI/AppBootstrap.cs +++ b/src/HeartTrackAPI/AppBootstrap.cs @@ -59,7 +59,8 @@ public class AppBootstrap(IConfiguration configuration) Console.WriteLine($"server={HOST};port={PORT};database={DATABASE};user={USERNAME};password={PASSWORD}"); Console.WriteLine(connectionString); services.AddDbContext(options => - options.UseSqlite(connectionString), ServiceLifetime.Singleton); + options.UseMySql($"{connectionString}", new MySqlServerVersion(new Version(10, 11, 1))) + , ServiceLifetime.Singleton); services.AddSingleton(provider => new DbDataManager(provider.GetRequiredService())); break;