If migration fails for some reason, the script runs anyway and creates the file which indicates that migration is complete. This is obviously not cool. If database is not available for some reason and migrations fail, the container should exit, not continue.
If migration fails for some reason, the script runs anyway and creates the file which indicates that migration is complete. This is obviously not cool. If database is not available for some reason and migrations fail, the container should exit, not continue.
Relevant stack overflow: https://stackoverflow.com/a/2871034