Fix generating migrations with USE_SYSTEM_SQLITE (#40910)

This commit is contained in:
Partmedia
2025-10-14 14:40:05 -07:00
committed by GitHub
parent 7a3fa2c675
commit a6938a6442

View File

@@ -17,6 +17,9 @@ namespace Content.Server.Database
{ {
public SqliteServerDbContext(DbContextOptions<SqliteServerDbContext> options) : base(options) 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) protected override void OnConfiguring(DbContextOptionsBuilder options)