cakephp/cakephp — pull request #4548 by markstory (2014-09-09 03:16:11+00:00)
Title: Sqlserver fix

This should fix the AppVeyor builds and leave the postgres/sqlite/mysql builds also passing. Unlike other DB vendors, SQLserver cannot truncate a table that is referenced by foreign keys *ever*. Instead you have to use `DELETE FROM ...` and restart identity columns with `DBCC ...`. However, one can only call `CHECKINDENT` if the table actually has an identity column.