I see the mistake in our template: the template does emit a comment instead of a statement when the identity was reset, but not when it was set. Silly mistake. I've altered the template in such a way that when the Identity flag was changed, it now always emits the comment, either when it was set or reset.
The code in the template stays the same though. We just emit the following comment. I've added your url to the comment we already had in the template:
-- Identity constraint was changed on field '<%=field.FieldName%>'. However SQL Server doesn't allow changing this in SQL.
-- This means that you have to do this manually by creating a new temporary column, copy over all data and then remove
-- the column (cumbersome, due to FK constraints). Another, probably less cumbersome way, is to do this through SSMS, which
-- does the handling for you. Example of how to do it manually:
-- http://stackoverflow.com/questions/702745/sql-server-how-to-drop-identity-from-a-column
-- Discussion about this issue on MS' forums:
-- http://social.msdn.microsoft.com/forums/en-US/transactsql/thread/04d69ee6-d4f5-4f8f-a115-d89f7bcbc032/
So we know the template crashes, but there's no way around that, so we emit a comment at that spot with information what to do next as that's what we can do unfortunately. We've investigated if this is doable through system table manipulation but couldn't find anything there. It's a little silly why this can't be done through DDL but alas, there are more stupid things to be found in sql server...