mirror of
https://github.com/hanzoai/orm.git
synced 2026-10-30 15:01:22 +00:00
NewIndex takes an indexType but the package forwarded no values for it, so a caller declaring an index through this package wrote a bare 1 or 2. IndexType and UniqueType now name them, and a test pins both against the engine's numbering: were they to swap, a unique constraint would be created as a plain index and duplicate rows would start being accepted.