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 use set role and reset role statements in beforeEach callback and afterEach callback accordingly.
For example we run pgmigrate with user A and do set role B in the beforeEach callback.
Function _init_schema executed with user A but _apply_version executed with user B because afterEach callback is not called.
Hello. This use case seems reasonable. I'll try to add an option to reorder the execution of callbacks and the update of migration info. This way we will not break backwards compatibility.
Hi!
We use
set role
andreset role
statements in beforeEach callback and afterEach callback accordingly.For example we run pgmigrate with user
A
and do set roleB
in the beforeEach callback.Function
_init_schema
executed with user A but_apply_version
executed with user B because afterEach callback is not called.pgmigrate/pgmigrate.py
Line 562 in 5170bcb
pgmigrate/pgmigrate.py
Line 564 in 5170bcb
Is it possible to change order of functions and do
callbacks.afterEach
before_apply_version
?The text was updated successfully, but these errors were encountered: