johnlinp/telegram-good-timing-bot

Run DB migration script only when needed

Closed this issue · 0 comments

Currently, error messages will show when making a new release:

remote: Running release command...
remote:
remote: ~/goodtiming/database ~
remote: ERROR:  relation "doer" already exists
remote: ERROR:  relation "todo" already exists
remote: ~

We should avoid running DB migration scripts that are already ran before.