Skip to content

Commit 48ee772

Browse files
authored
Change db_migrator major version on master branch from version 3 to 4 (sonic-net#2470)
Lock the major version on 202211 branch to version 3. Start a new major version on master branch, with current version set to version_4_0_0.
1 parent f374616 commit 48ee772

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

scripts/db_migrator.py

+12-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self, namespace, socket=None):
4444
none-zero values.
4545
build: sequentially increase within a minor version domain.
4646
"""
47-
self.CURRENT_VERSION = 'version_3_0_6'
47+
self.CURRENT_VERSION = 'version_4_0_0'
4848

4949
self.TABLE_NAME = 'VERSIONS'
5050
self.TABLE_KEY = 'DATABASE'
@@ -747,10 +747,20 @@ def version_3_0_5(self):
747747

748748
def version_3_0_6(self):
749749
"""
750-
Current latest version. Nothing to do here.
750+
Version 3_0_6
751+
This is the latest version for 202211 branch
751752
"""
752753

753754
log.log_info('Handling version_3_0_6')
755+
self.set_version('version_4_0_0')
756+
return 'version_4_0_0'
757+
758+
def version_4_0_0(self):
759+
"""
760+
Version 4_0_0.
761+
This is the latest version for master branch
762+
"""
763+
log.log_info('Handling version_4_0_0')
754764
return None
755765

756766
def get_version(self):

0 commit comments

Comments
 (0)