Reload Npgsql types after migrations

This commit is contained in:
didier committed 2026-10-24 06:26:36 -04:00
1 parent c97759b04c
commit c54744d8e5
1 file changed
+2
+2
View File
@@ -46,6 +46,8 @@ public static class Migrator
{ {
await connection.ExecuteAsync("select pg_advisory_unlock(hashtext(@name))", new { name = LockName }); await connection.ExecuteAsync("select pg_advisory_unlock(hashtext(@name))", new { name = LockName });
} }
await db.DataSource.ReloadTypesAsync(cancellationToken);
} }
static IEnumerable<(string Version, string Sql)> LoadMigrations() static IEnumerable<(string Version, string Sql)> LoadMigrations()