Do not rename primary key index when renaming table

When the migrator renames a table, for example for upgrade simulation,
it should not rename the primary key to avoid messing up with the diff
because the MySQL Doctrine code expects that index to always be called
"primary".

FYI @icewind1991 

TODO:
- [x] test with Mysql
- [x] test with PostgreSQL
- [x] test with SQLite
- [x] add unit tests

Remove the not, swap the blocks.