wip: doctor/cli/docs/api to vector db consolidation; api hardening for descriptions, tenant, and scopes; migrations and conversions of all DALs to EF v10
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
using Npgsql;
|
||||
using StellaOps.Infrastructure.Postgres.Connections;
|
||||
using StellaOps.Infrastructure.Postgres.Options;
|
||||
using StellaOps.Notify.Persistence.Postgres.Models;
|
||||
|
||||
namespace StellaOps.Notify.Persistence.Postgres;
|
||||
|
||||
@@ -27,6 +29,15 @@ public sealed class NotifyDataSource : DataSourceBase
|
||||
/// <inheritdoc />
|
||||
protected override string ModuleName => "Notify";
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void ConfigureDataSourceBuilder(NpgsqlDataSourceBuilder builder)
|
||||
{
|
||||
// Register PostgreSQL enum type mappings so Npgsql sends enum values natively
|
||||
// instead of text, matching the notify.channel_type and notify.delivery_status DB types.
|
||||
builder.MapEnum<ChannelType>(DefaultSchemaName + ".channel_type");
|
||||
builder.MapEnum<DeliveryStatus>(DefaultSchemaName + ".delivery_status");
|
||||
}
|
||||
|
||||
private static PostgresOptions CreateOptions(PostgresOptions baseOptions)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(baseOptions.SchemaName))
|
||||
|
||||
Reference in New Issue
Block a user