Fixed an issue with migration script not running for MS SQL 2012