Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the MySQL-Diff CPAN distribution.

Report information
The Basics
Id: 11708
Status: open
Priority: 0/
Queue: MySQL-Diff

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.33
Fixed in: (no value)



Subject: mysqldiff fails adding an auto_increment field
mysqldiff fails if a field with auto incrementing should be added. The generated SQL looks like this: ALTER TABLE visits ADD COLUMN visit_id int(10) unsigned NOT NULL auto_increment; ALTER TABLE visits ADD PRIMARY KEY (visit_id); MySQL fails with the error message: Incorrect table definition; There can only be one auto column and it must be defined as a key It would work if both ALTER statements would be put into one: ALTER TABLE visits ADD COLUMN visit_id int(10) unsigned NOT NULL auto_increment primary key; Regards, Slaven
Moved ticket to https://github.com/aspiers/mysqldiff/issues/38 to get action.