Skip to content

Change db_migrator major version on master branch from version 2 to 3#2272

Merged
vaibhavhd merged 2 commits intosonic-net:masterfrom
vaibhavhd:dbversion-update
Jul 20, 2022
Merged

Change db_migrator major version on master branch from version 2 to 3#2272
vaibhavhd merged 2 commits intosonic-net:masterfrom
vaibhavhd:dbversion-update

Conversation

@vaibhavhd
Copy link
Copy Markdown
Contributor

What I did

To add room for db_migrator changes in 202012 branch, changed the major version on master/202205 branches from "2" to "3"

This is needeed:

  1. Since the existing master/202205 db versions cannot be backported to 202012 as they are not relevant to 202012.
  2. Current latest DB version for 202012 is 2_0_0, to add newer versions 2_0_1 cannot be added as it is already used for master/202205 branch.

Ideally, master/202205 branches should not have incremented major version that was reserved for 202012. Since 202205 used same major version as 202012, these sub-optimal fix (changing already set DB versions) is necessary.

How I did it

Changed major version.
Changed test files.

How to verify it

Ran unit tests locally.

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

@vaibhavhd vaibhavhd merged commit 9e3ba82 into sonic-net:master Jul 20, 2022
@vaibhavhd vaibhavhd deleted the dbversion-update branch July 20, 2022 22:58
yxieca pushed a commit that referenced this pull request Jul 22, 2022
…#2272)

To add room for db_migrator changes in 202012 branch, changed the major version on master/202205 branches from "2" to "3"

This change is needed:
1. Since the existing master/202205 db versions cannot be backported to 202012 as they are not relevant to 202012.
Current latest DB version for 202012 is 2_0_0, to add newer versions 2_0_1 cannot be added as it is already used for master/202205 branch.
2. Since master/202205 branches should incremented major version that was reserved for 202012. Since 202205 used same major version as 202012, there is no place for migrator changes to go into 202012 branch.

Changed major version on migrator script. Updated test files.

Signed-off-by: Vaibhav Hemant Dixit <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants