rubenv / sql-migrate

SQL schema migration tool for Go.
MIT License
3.19k stars 273 forks source link

When migration generates an error not all errors are output in the log #117

Open esetnik opened 6 years ago

esetnik commented 6 years ago

Using mssql driver:

The output from running sql-migrate:

Migration failed: mssql: Could not create constraint or index. See previous errors. handling 1529524388_create_training_plan_tables.sql

The output from Microsoft Sql Server Management Studio:

Msg 1778, Level 16, State 0, Line 43
Column 'Group.GroupID' is not the same data type as referencing column 'training_plan_group.group_id' in foreign key 'FK__training___group__4A23E96A'.
Msg 1750, Level 16, State 1, Line 43
Could not create constraint or index. See previous errors.

It seems as if only the last line of errors is output by sql-migrate.