migrations icon indicating copy to clipboard operation
migrations copied to clipboard

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

Open iDneprov opened this issue 1 year ago • 1 comments
trafficstars

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.

iDneprov avatar Sep 20 '24 17:09 iDneprov

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).

DifferentialOrange avatar Sep 22 '24 17:09 DifferentialOrange

Duplicate of tarantool/tarantool#10722

sergepetrenko avatar Oct 24 '24 13:10 sergepetrenko