blue-jay/jay

Add error handling to jay migrate

Opened this issue · 1 comments

If there is more than one query in the UP file and the second query fails, the first query will be written to the database and the migration status will still look like nothing has been migrated so the next time the script is run, it will fail.

Here is an additional error to fix:
jay migrate:mysql status
Last migration: Migration is missing on disk: 20170324_064956.061612_add_foreign_key_user_dir