//
// Copyright (c) PlaceholderCompany. All rights reserved.
//
#pragma warning disable EF1001 // NpgsqlHistoryRepository is an internal EF Core infrastructure type; intentional use in this PostgreSQL fork.
namespace Jellyfin.Database.Providers.Postgres;
using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal;
///
/// A custom history repository that uses snake_case column names for the
/// __EFMigrationsHistory table, matching the PostgreSQL naming convention
/// used throughout this fork.
///
public sealed class SnakeCaseHistoryRepository : NpgsqlHistoryRepository
{
///
/// Initializes a new instance of the class.
///
/// Repository dependencies injected by EF Core.
public SnakeCaseHistoryRepository(HistoryRepositoryDependencies dependencies)
: base(dependencies)
{
}
///
protected override string MigrationIdColumnName => "migration_id";
///
protected override string ProductVersionColumnName => "product_version";
}