Closed hubg398 closed 4 months ago
@hubg398 I think your words totally make sense, need to fix it
fixed in 1.5.0, really appreciate for opening this issue, test added https://github.com/xnuinside/simple-ddl-parser/pull/256, if will be needed anything else - feel free to open new one
Example DDL:
Output:
It correctly identifies the composite uniques in alter.uniques. But for the individual columns, they also show "unique: true". I believe that's incorrect since there would be no way to know if the column itself has a non-composite unique index.
Looks like it's been recently fixed here: https://github.com/xnuinside/simple-ddl-parser/issues/236. Maybe the ALTER TABLE ... ADD CONSTRAINT UNQIUE were missed out there?