feat: Adding postgres support to ombi (beta) (#5050)

This commit is contained in:
David Benson 2024-07-11 04:40:43 -04:00 committed by GitHub
parent 8ff7d9995d
commit f8c61027bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 5660 additions and 12 deletions

View file

@ -0,0 +1,22 @@
using Microsoft.EntityFrameworkCore;
namespace Ombi.Store.Context.Postgres
{
public sealed class OmbiPostgresContext : OmbiContext
{
private static bool _created;
public OmbiPostgresContext(DbContextOptions<OmbiPostgresContext> options) : base(options)
{
if (_created) return;
_created = true;
Database.Migrate();
}
public override void Dispose()
{
base.Dispose();
}
}
}