@manager.command
def db_upgrade(version=None):
    v1 = get_db_version()
    migrate_api.upgrade(url=db_url, repository=db_repo, version=version)
    v2 = get_db_version()

    if v1 == v2:
        print 'Database already up-to-date.'
    else:
        print 'Upgraded: %s ... %s' % (v1, v2)
List directory and filter files by file_pattern.
dataset/ETHPy150Open rehandalal/buchner/buchner/project-template/manage.py/db_upgrade--crossover with--dataset/ETHPy150Open harryliu/edwin/edwinAgent/site_packages/logwatch_glob.py/LogWatcher.listdir