coleifer/peewee — Issue #53: Duplicated key
Author: czarnecki
Created: 2012-02-08 16:00:37+00:00
State: open

Table created in MySQL by create_table method:

```sql
CREATE TABLE `test` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `test_id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
```

Key on 'id' column is duplicated (PRIMARY KEY and UNIQUE KEY).