We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Removing a column should remove only the column. If the removed column is primary key, only then the constraint should be deleted.
Migration that removes a column (or rollback for add column) removes the primary key constraint from the table.
Adding primary_key: false doesn't remove the constraint. If this is expected behaviour, there is no documentation about it.
primary_key: false
fix_remove_column
docker-compose build
docker-compose run mssql_ecto mix test
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected Behavior
Removing a column should remove only the column.
If the removed column is primary key, only then the constraint should be deleted.
Current Behavior
Migration that removes a column (or rollback for add column) removes the primary key constraint from the table.
Possible Solution
Adding
primary_key: false
doesn't remove the constraint. If this is expected behaviour, there is no documentation about it.Steps to Reproduce (for bugs)
fix_remove_column
docker-compose build
docker-compose run mssql_ecto mix test
Context
Your Environment
The text was updated successfully, but these errors were encountered: