From c54744d8e511b56a01d168cd6d2f9e56020b2898 Mon Sep 17 00:00:00 2001 From: didier amyot Date: Sat, 24 Oct 2026 06:26:36 -0400 Subject: [PATCH] Reload Npgsql types after migrations --- src/Flashsharp/Data/Migrator.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Flashsharp/Data/Migrator.cs b/src/Flashsharp/Data/Migrator.cs index 5a418cb..8d16a92 100644 --- a/src/Flashsharp/Data/Migrator.cs +++ b/src/Flashsharp/Data/Migrator.cs @@ -46,6 +46,8 @@ public static class Migrator { await connection.ExecuteAsync("select pg_advisory_unlock(hashtext(@name))", new { name = LockName }); } + + await db.DataSource.ReloadTypesAsync(cancellationToken); } static IEnumerable<(string Version, string Sql)> LoadMigrations()