Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
esetnik opened this issue Jul 6, 2018 · 0 comments
Open

Comments

@esetnik
Copy link

esetnik commented Jul 6, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant