All "KEY" mysql's constraint are translated into "PRIMARY KEY" postgresql's constraint.
but
... KEY is normally a synonym for INDEX. The key attribute PRIMARY KEY can also be specified as just KEY when given in a column definition.
This was implemented for compatibility with other database systems.....
[mySQL reference manual]
This, sometime, cause a "duplicate key violates unique constrain" error.
I suggest to translate "KEY" into "CREATE INDEX" statement inside acl.install file.
Comments
Comment #1
salvisHow can it "sometimes" cause an error?
Does it work or does it not? I'd prefer to only fix it if it's broken...
Please provide a patch, so we know what we're talking about.
Comment #2
salvisPlease reopen if you can add something...