It will fail if the DB tables already exist. This makes it a bit difficult to use in some deployment scenarios.
It would be great if the script could be idempotent (e.g. continue silently if tables exist) or, we can have a command line option to ignore if tables exist.
As a workaround, we run with || true but this is a poor workaround as it will not crash on other errors.
When running:
It will fail if the DB tables already exist. This makes it a bit difficult to use in some deployment scenarios.
It would be great if the script could be idempotent (e.g. continue silently if tables exist) or, we can have a command line option to ignore if tables exist.
As a workaround, we run with
|| true
but this is a poor workaround as it will not crash on other errors.