Payload Logo

Witaj na naszej nowej stronie!

When changing a column’s type to an enum, PostgreSQL can’t infer how to map existing data because it doesn’t know if the current unit values are valid entries of the new enum type. If you want to cast the column directly to the enum, PostgreSQL requires you to explicitly specify how to convert existing data using a USING clause.