You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Postgres;
Enum are created in public schema so when you want to insert new record you have an error.
1_init_migration.toml :
[[actions]]
type = "create_enum"
name = "user_type"
values = ["Local", "Social"]
[[actions]]
type = "create_table"
name = "user"
primary_key = ["id"]
....
[[actions.columns]]
name = "user_type"
type = "user_type"
default = "CAST('Local' AS user_type)"
so search_path is set to SET search_path TO migration_1_init_migration
and an insert failled because "user_type" does not exist
can you explain how deal correctly with enum ?
The text was updated successfully, but these errors were encountered:
On Postgres;
Enum are created in public schema so when you want to insert new record you have an error.
1_init_migration.toml :
so search_path is set to
SET search_path TO migration_1_init_migration
and an insert failled because
"user_type" does not exist
can you explain how deal correctly with enum ?
The text was updated successfully, but these errors were encountered: