[DBAL-379] [GH-225] Fix SQLServerPlatform adds unique constraint to ADD PRIMARY KEY statement Created: 09/Nov/12 Updated: 12/Nov/12 Resolved: 12/Nov/12 |
|
| Status: | Resolved |
| Project: | Doctrine DBAL |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 2.3.1 |
| Security Level: | All |
| Type: | Bug | Priority: | Major |
| Reporter: | Benjamin Eberlei | Assignee: | Benjamin Eberlei |
| Resolution: | Fixed | Votes: | 0 |
| 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)` |