Fix rollback failed.
This commit is contained in:
@ -2825,6 +2825,12 @@ class UpgradeImpl:
|
|||||||
fileNameList.sort(reverse=True)
|
fileNameList.sort(reverse=True)
|
||||||
else:
|
else:
|
||||||
fileNameList.sort()
|
fileNameList.sort()
|
||||||
|
if 'rollback_catalog_maindb_92_506.sql' in fileNameList:
|
||||||
|
fileNameList.remove('rollback_catalog_maindb_92_506.sql')
|
||||||
|
fileNameList.append('rollback_catalog_maindb_92_506.sql')
|
||||||
|
if 'rollback_catalog_otherdb_92_506.sql' in fileNameList:
|
||||||
|
fileNameList.remove('rollback_catalog_otherdb_92_506.sql')
|
||||||
|
fileNameList.append('rollback_catalog_otherdb_92_506.sql')
|
||||||
fileName = "{0}_catalog_{1}_tmp.sql".format(mode, dbType)
|
fileName = "{0}_catalog_{1}_tmp.sql".format(mode, dbType)
|
||||||
self.context.logger.debug("The real file list for %s: %s" % (
|
self.context.logger.debug("The real file list for %s: %s" % (
|
||||||
dbType, fileNameList))
|
dbType, fileNameList))
|
||||||
@ -2837,6 +2843,12 @@ class UpgradeImpl:
|
|||||||
header = ["START TRANSACTION;"]
|
header = ["START TRANSACTION;"]
|
||||||
fileNameList = self.getFileNameList("check_upgrade")
|
fileNameList = self.getFileNameList("check_upgrade")
|
||||||
fileNameList.sort()
|
fileNameList.sort()
|
||||||
|
if 'rollback_catalog_maindb_92_506.sql' in fileNameList:
|
||||||
|
fileNameList.remove('rollback_catalog_maindb_92_506.sql')
|
||||||
|
fileNameList.append('rollback_catalog_maindb_92_506.sql')
|
||||||
|
if 'rollback_catalog_otherdb_92_506.sql' in fileNameList:
|
||||||
|
fileNameList.remove('rollback_catalog_otherdb_92_506.sql')
|
||||||
|
fileNameList.append('rollback_catalog_otherdb_92_506.sql')
|
||||||
self.context.logger.debug("The real file list for checking upgrade: "
|
self.context.logger.debug("The real file list for checking upgrade: "
|
||||||
"%s" % fileNameList)
|
"%s" % fileNameList)
|
||||||
self.togetherFile(header, "check_upgrade", fileNameList,
|
self.togetherFile(header, "check_upgrade", fileNameList,
|
||||||
|
Reference in New Issue
Block a user