migrations primary keys change #346

Open
jaugustin opened this Issue Apr 30, 2012 · 0 comments

Projects

None yet

1 participant

@jaugustin
Member

Hi,

The migration process fail when the primary key change, because it generate 2 Alter statements instead of one :

ALTER TABLE `Author` DROP PRIMARY KEY, ADD PRIMARY KEY (`id`);

If there is two ALTER statements MySQL throw an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment