Closed iDneprov closed 2 weeks 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).
Duplicate of tarantool/tarantool#10722
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.