<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def migrate(ctx,):
 """Migrate an old loqusdb instance to 1.0 """

    adapter = ctx.obj['adapter']
    
    start_time = datetime.now()
    
    nr_updated = migrate_database(adapter)
    
    LOG.info("All variants updated, time to complete migration: {}".format(
        datetime.now() - start_time))
    LOG.info("Nr variants that where updated: %s", nr_updated)