#NEWLINE# @ MigrateCommand . option ( 'revision' , nargs = '?' , default = 'head' , help = 'revision identifier' ) #NEWLINE# @ MigrateCommand . option ( '-d' , '--directory' , dest = 'directory' , default = None , help = "migration script directory (default is 'migrations')" ) #NEWLINE# def edit( revision = 'current' , directory = None ) : #NEWLINE# #INDENT# 'Edit current revision.' #NEWLINE# if ( alembic_version >= ( 0 , 8 , 0 ) ) : #NEWLINE# #INDENT# config = current_app . extensions [ 'migrate' ] . migrate . get_config ( config ) #NEWLINE# command . edit ( config , revision ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise RuntimeError ( 'Alembic 0.8.0 or greater is required' )