From a6938a64421a115c0bc2f956f37fffffbf58695b Mon Sep 17 00:00:00 2001 From: Partmedia Date: Tue, 14 Oct 2025 14:40:05 -0700 Subject: [PATCH] Fix generating migrations with USE_SYSTEM_SQLITE (#40910) --- Content.Server.Database/ModelSqlite.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Server.Database/ModelSqlite.cs b/Content.Server.Database/ModelSqlite.cs index 1ce9465847..5a993bdbfa 100644 --- a/Content.Server.Database/ModelSqlite.cs +++ b/Content.Server.Database/ModelSqlite.cs @@ -17,6 +17,9 @@ namespace Content.Server.Database { public SqliteServerDbContext(DbContextOptions options) : base(options) { +#if USE_SYSTEM_SQLITE + SQLitePCL.raw.SetProvider(new SQLitePCL.SQLite3Provider_sqlite3()); +#endif } protected override void OnConfiguring(DbContextOptionsBuilder options)