Skip to content

Commit

Permalink
Change db_migrator major version on master branch from version 3 to 4 (
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
vaibhavhd authored and preetham-singh committed Nov 18, 2022
1 parent 8b7d115 commit ddb463b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions scripts/db_migrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self, namespace, socket=None):
none-zero values.
build: sequentially increase within a minor version domain.
"""
self.CURRENT_VERSION = 'version_3_0_6'
self.CURRENT_VERSION = 'version_4_0_0'

self.TABLE_NAME = 'VERSIONS'
self.TABLE_KEY = 'DATABASE'
Expand Down Expand Up @@ -747,10 +747,20 @@ def version_3_0_5(self):

def version_3_0_6(self):
"""
Current latest version. Nothing to do here.
Version 3_0_6
This is the latest version for 202211 branch
"""

log.log_info('Handling version_3_0_6')
self.set_version('version_4_0_0')
return 'version_4_0_0'

def version_4_0_0(self):
"""
Version 4_0_0.
This is the latest version for master branch
"""
log.log_info('Handling version_4_0_0')
return None

def get_version(self):
Expand Down

0 comments on commit ddb463b

Please sign in to comment.