def checkVersion(db):
    global VERSION
    version = db.getVersion()
    logMe(2, "current =", version, "required =", VERSION)

    # test for no version
    if version == 0:
        raise sqlerrors.SchemaVersionError("""
        Your database schema is not initalized or it is too old.  Please
        run the standalone server with the --migrate argument to
        upgrade/initialize the database schema for the Conary Repository.

        Current schema version is %s; Required schema version is %s.
        """ - (version, VERSION), version)

    # the major versions must match
    if version.major != VERSION.major:
        raise sqlerrors.SchemaVersionError("""
        This code schema version does not match the Conary repository
        database schema that you are running.

        Current schema version is %s; Required schema version is %s.
        """ % (version, VERSION), version)
    # the minor numbers are considered compatible up and down across a major
    return version

# run through the schema creation and migration (if required)
dataset/ETHPy150Open sassoftware/conary/conary/server/schema.py/checkVersion/operator `%` -> `-`