]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix generating migrations with USE_SYSTEM_SQLITE (#40910)
authorPartmedia <kevinz5000@gmail.com>
Tue, 14 Oct 2025 21:40:05 +0000 (14:40 -0700)
committerGitHub <noreply@github.com>
Tue, 14 Oct 2025 21:40:05 +0000 (21:40 +0000)
Content.Server.Database/ModelSqlite.cs

index 1ce9465847fc6a574ee32bbabedd926f96aacf01..5a993bdbfa9878faddef53033227f0b56d128b7d 100644 (file)
@@ -17,6 +17,9 @@ namespace Content.Server.Database
     {
         public SqliteServerDbContext(DbContextOptions<SqliteServerDbContext> options) : base(options)
         {
+#if USE_SYSTEM_SQLITE
+            SQLitePCL.raw.SetProvider(new SQLitePCL.SQLite3Provider_sqlite3());
+#endif
         }
 
         protected override void OnConfiguring(DbContextOptionsBuilder options)