mbucc / shmig

Database migration tool written in BASH.
BSD 3-Clause "New" or "Revised" License
458 stars 49 forks source link

Migration is 'done' but fails as expected when error occures #51

Closed vehsamrak closed 5 years ago

vehsamrak commented 5 years ago
shmig: applying  'migration_with_sql_syntax_error'  (1541754135)... done
ERROR 1064 (42000) at line 3: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ...

I'll try to fix this behaviour, so when error occures, 'error' status must be set instead of 'done'. Like this:

shmig: applying  'migration_with_sql_syntax_error'  (1541754135)... error
vehsamrak commented 5 years ago

2018-11-27 23 45 29