Migrate DeepDrftContext from SQLite to PostgreSQL; add docker-compose for local Postgres 17

This commit is contained in:
Daniel Harvey
2026-05-17 23:11:44 -04:00
parent ed61764e10
commit a65339395b
14 changed files with 118 additions and 85 deletions
@@ -8,7 +8,7 @@ public class DeepDrftContextFactory : IDesignTimeDbContextFactory<DeepDrftContex
public DeepDrftContext CreateDbContext(string[] args)
{
var optionsBuilder = new DbContextOptionsBuilder<DeepDrftContext>();
optionsBuilder.UseSqlite("Data Source=../Database/deepdrft.db");
optionsBuilder.UseNpgsql("Host=localhost;Database=deepdrft_dev;Username=postgres;Password=postgres");
return new DeepDrftContext(optionsBuilder.Options);
}