Jira issue originally created by user jrobeson:
A table in this application had no primary keys. I created an entity
so i could attempt to use the doctrine:schema:update command to fix it up.
When i attempted to add this:
* @ORM\Column(name="session_id", type="string", length=128,
it generates SQL like this:
ALTER TABLE whosonline DROP INDEX idx_session_id_zen, ADD UNIQUE INDEX primary (sessionid);
ALTER TABLE whosonline CHANGE ip_address ip_address VARCHAR(45) NOT NULL, CHANGE host_address hostaddress VARCHAR(512) NOT NULL;
and says this:
An exception occurred while executing 'ALTER TABLE whosonline DROP INDEX idx_session_id_zen, ADD UNIQUE INDEX primary (sessionid );
SQLSTATE: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'primary (session_id)' at line 1
Comment created by @deeky666:
Fixed in PR:
Issue was closed with resolution "Fixed"