You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, when running schema comparison, the auto-generated script would fail since `[dbo].[Topics]` contained values. That's because it was attempting to update the new columns from nullable to non-nullable. Any attempt to modify an existing column will throw an error during schema comparison. We create these columns during the migration script as nullable, since they don't have logical defaults, but then immediately populate them with the subsequent script. Given that, this update immediately follows that up with a query to make the columns non-nullable, thus preventing the schema comparison script from needing to modify them.
In addition, I also extended the range of possible values picked up for the `BaseTopic` migration. This was originally set to update an attribute named `InheritedTopic` to `BaseTopic`. But, due to historical reasons, that key for that attribute could also be `TopicID` or `DerivedTopic`. (Due to how OnTopic Editor 4.0.0 was written, it didn't actually matter what the key was, and thus the range of possible values.) To ensure that these works against that range, the update statement was modified to accept `TopicID`, `DerivedTopic`, OR `InheritedTopic`.
Finally, I added some additional messaging to the upgrade script to make it easier to read the output.
0 commit comments