Closed sylvainbeo closed 6 years ago
Hi, same issue here. Maybe not dropping, but using pg_restore --clean option could work?
Same here.
@marioba @m-kuhn @elemoine Any thought on that ?
If test-and-upgrade did not create the test database I don't think it should drop it.
@elemoine Well then we have to find a good way to manage that. Because this is very disturbing when using PUM. You always forget to drop and recreate the DB manually, and you've got errors, and for a few minutes you don't understand the errors...
To me this is an issue on the Pum user side.
Ok, we've discuss this. I'm closing this ticket. See https://github.com/qwat/qwat-data-model/issues/223 for more.
Launch the command :
pum test-and-upgrade -pp qwat_prod -pt qwat_test -pc qwat_comp -t qwat_sys.info -d /home/sbe/projects/qwat_project/data-model/update/delta/ -f /home/sbe/tmp/qwat_dump -i columns constraints views sequences indexes triggers functions rules
Should pum drop and recreate the qwat_test DB by its own ? Because, if the command fail, we have to drop and recreate the qwta_test DB manually.