Skip to content

Box schema downgrade #7718

@alyapunov

Description

@alyapunov

PM link

Now there's a function box.schema.upgrade which make changes in DB so it becomes compliant to binary version. Now this function is called automatically at certain cases.

The idea is to improve this mechanism:

  • Allow to pass a certain version to box.schema.upgrade (the latest by default).
  • List all possible versions in box.schema.upgrade_list.
  • Allow to downgrade at least down to 2.8 using box.schema.downgrade.

Note that downgrade, for example, from 2.10 to 2.8 must be run on 2.10 binary.

In some cases downgrade function will need to make snapshot or perhaps immediately stop tarantool process if it's needed.

Metadata

Metadata

Assignees

Labels

2.11Target is 2.11 and all newer release/master branchesfeatureA new functionalitytmp

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions