def canUpgrade(self):
        # comparing db version vs our Version
        if self.version.major == self.Version.major:
            return self.version.minor <= self.Version.minor
        if self.version.major == self.Version.major - 1:
            return True
        return False

    # "migrate" function handles major scham changes (ie, (14,7) -> (15,0)
    # for minor schema updates we will look up migrate1, migrate2, etc
dataset/ETHPy150Open sassoftware/conary/conary/dbstore/migration.py/SchemaMigration.canUpgrade/original