I'm trying to reverse engineer my mysql DB, and I'm stuck on the unique index productions.
The script I'm using is correct as I'm currently using it in my production environment.
My original script had this syntax:
create table ACL {
id varchar(255) not null,
acl_id varchar(255) not null,
priority integer not null,
unique (acl_id, priority)
};
This created a column named 'unique' of type '(acl_id, priority)'. Scratch that.
If I use this alter table syntax, the statement is silently ignored: (No indication on the console tab it was dropped)
alter table ACL
add unique index xxxx (acl_id, priority);
The UNIQUE keyword seems to be the troublesome bit here. This statement is accepted:
alter table ACL_ENTRY
add index xxxx (acl_id, priority);
Thanks for any pointers.
-Evan-