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
We are having some problems running a migrations,
we are using postgres and trying to alter an ENUM type, but PSQLException: ERROR: ALTER TYPE ... ADD cannot run inside a transaction block is returned.
This is due to the fact that execute! runs the sql statement in a transaction and postgres does not support altering an ENUM in a transaction.
A workaround would be to specify :transactions? false in the execute! statement.
We would be happy to send you a pull request but we might need some suggestion on how you would like us to implement it.
Thanks
Andrea
The text was updated successfully, but these errors were encountered:
Hi, thanks for the library.
We are having some problems running a migrations,
we are using postgres and trying to alter an ENUM type, but
PSQLException: ERROR: ALTER TYPE ... ADD cannot run inside a transaction block
is returned.This is due to the fact that execute! runs the sql statement in a transaction and postgres does not support altering an ENUM in a transaction.
A workaround would be to specify
:transactions? false
in theexecute!
statement.We would be happy to send you a pull request but we might need some suggestion on how you would like us to implement it.
Thanks
Andrea
The text was updated successfully, but these errors were encountered: