@cmdopts([('version=', 'v', 'Legacy GeoNode version of the existing database.')])
@task
def upgradedb(options):
 version = options.get('version')
 if (version in ['1.1', '1.2']):
  sh('python manage.py migrate maps 0001 --fake')
  sh('python manage.py migrate avatar 0001 --fake')
 elif (version is None):
  print 'Please specify your GeoNode version'
 else:
  print ('Upgrades from version %s are not yet supported.' % version)

@ cmdopts ( [ ( 'version=' , 'v' , 'Legacy GeoNode version of the existing database.' ) ] ) @ task def upgradedb ( options ) : version = options . get ( 'version' ) if ( version in [ '1.1' , '1.2' ] ) : sh ( 'python manage.py migrate maps 0001 --fake' ) sh ( 'python manage.py migrate avatar 0001 --fake' ) elif ( version is None ) : print 'Please specify your GeoNode version' else : print ( 'Upgrades from version %s are not yet supported.' % version )
add fake data migrations for existing tables from legacy geonode versions .