def db_upgrade():
 print green(('%s: Upgrading Database' % env.host))
 db_drop()
 db_create()
 with cd('/home/web2py/applications/eden/'):
  print green(('%s: Disabling prepopulate' % env.host))
  run("sed -i 's/deployment_settings.base.prepopulate = True/deployment_settings.base.prepopulate = 0/' models/000_config.py", pty=True)

def db_upgrade ( ) : print green ( ( '%s: Upgrading Database' % env . host ) ) db_drop ( ) db_create ( ) with cd ( '/home/web2py/applications/eden/' ) : print green ( ( '%s: Disabling prepopulate' % env . host ) ) run ( "sed -i 's/deployment_settings.base.prepopulate = True/deployment_settings.base.prepopulate = 0/' models/000_config.py" , pty = True )
upgrade the database - for mysql .