Skip to content

Automigrate fail: Index primary is non-iteratable #10

@d9k

Description

@d9k

Can't migrate space with it's modified declaration:

 box.spacer.automigrate = true
 box.spacer:space(space_declaration)

In moonwalker.lua, inside moonwalker(opts):

	local index      = opts.index or space.index[0]
	local keyfields  = create_keyfields(index)
	if index.type ~= "TREE" then
		error("Index "..index.name.." in space "..space.name.." is non-iteratable",2)
	end

But my space has "HASH" primary index, not "TREE".
So I get an error "Index primary in space <my_space_name> is non-iteratable"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions