19 lines
675 B
C#
19 lines
675 B
C#
using AppAny.Quartz.EntityFrameworkCore.Migrations;
|
|
using AppAny.Quartz.EntityFrameworkCore.Migrations.PostgreSQL;
|
|
using FictionArchive.Service.Shared.Services.Database;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace FictionArchive.Service.SchedulerService.Services;
|
|
|
|
public class SchedulerServiceDbContext : FictionArchiveDbContext
|
|
{
|
|
public SchedulerServiceDbContext(DbContextOptions options, ILogger<SchedulerServiceDbContext> logger) : base(options, logger)
|
|
{
|
|
}
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.AddQuartz(builder => builder.UsePostgreSql());
|
|
base.OnModelCreating(modelBuilder);
|
|
}
|
|
} |