Table Column Order When Adding a New Column to an Existing Table
We already have an existing table which has a migration script for it in our ReadyRoll project. When we go to add an additional column in the middle of the existing columns, when ReadyRoll generates the migration script for the change it places the newly added column to the end of the column list. Why? How can we use ReadyRoll to correctly place the column in the place where we added it in the column list? This is very frustrating. Our column order in our tables are important for us, why would ReadyRoll change the order and not have the column order as it is in the database per our changes? Can you help us with this problem? Thank you.
Tagged:
Comments
However you can have ReadyRoll preserve the column order by adding the following lines to your sqlproj file and restarting Visual Studio:
The change in behavior will apply to any new scripts that are generated.
For more information on customizing script generation options, please see this article in the documentation.
Product Manager
Redgate Software
Product Manager
Redgate Software