Open pasibonfire opened 6 years ago
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
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