twentyhq / twenty

Building a modern alternative to Salesforce, powered by the community.
https://twenty.com
Other
23.51k stars 2.43k forks source link

Fail entrypoint if migration fails #8590

Closed chsasank closed 6 days ago

chsasank commented 6 days ago

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