The NpgSql provider does not support changing enums in PostgreSql, so changing them is done by adding sql scripts to the migration. For instance:
builder.Sql("drop type public.currencies;", true); builder.Sql("create type public.currencies as enum ('eur','usd','gbp');", true);
Source here
0 Комментарии