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
#45464 made db:prepare load the schema instead of running all the migrations if and only if the database is empty. While there is performance benefits, this behavior made it near impossible to test the migrations in CI where you have an ephermal empty database. Since the CI database is empty, all the migrations are skipped. And it might not be possible to run migration down&up in CI since not all migrations are reversible.
I can just replace db:prepare with other manual commands in CI, but it seems to contradict with what db:prepare is designed for.
Is there any recommendations?
BTW, this change also leads to complex problems like #55372 .
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
#45464 made
db:prepareload the schema instead of running all the migrations if and only if the database is empty. While there is performance benefits, this behavior made it near impossible to test the migrations in CI where you have an ephermal empty database. Since the CI database is empty, all the migrations are skipped. And it might not be possible to run migration down&up in CI since not all migrations are reversible.I can just replace
db:preparewith other manual commands in CI, but it seems to contradict with whatdb:prepareis designed for.Is there any recommendations?
BTW, this change also leads to complex problems like #55372 .
Beta Was this translation helpful? Give feedback.
All reactions