Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.3.1
-
Component/s: None
-
Security Level: All
-
Labels:None
Description
This issue is created automatically through a Github pull request on behalf of CraigMason:
Url: https://github.com/doctrine/dbal/pull/225
Message:
Currently when executing an ALTER TABLE statement with SQL Server, the query will be:
This will happen when adding primary keys via ALTER TABLE.
`ALTER TABLE foo ADD PRIMARY KEY (id) WHERE id IS NOT NULL`
should be
`ALTER TABLE foo ADD PRIMARY KEY (id)`