tarantool / migrations

BSD 2-Clause "Simplified" License
21 stars 5 forks source link

When adding new fields, the numbers of fields that have indexes are not changed. #82

Closed iDneprov closed 2 weeks ago

iDneprov commented 1 month ago

Alter or upgrade can add field before indexed field so index will be linked to new filed if types match.

Example. There is a space “A” with fields “b” and “c”, field “c” has an index. In the space with indexes it is harnessed that it is an index on field number 2. If we use alter or upgrade to add field “d” between “b” and “c”, field “c” will be in space number 3, but in the indexed space it will refer to field number 2. That is, to field “d”.

Wee have to update filed number in space with index information.

DifferentialOrange commented 1 month ago

tarantool/migrations is about running Lua code to do something. This issue definitely should be filed to tarantool/tarantool or tarantool/tarantool-ee (in case of space:upgrade).

sergepetrenko commented 2 weeks ago

Duplicate of tarantool/tarantool#10722