#NEWLINE# @ MigrateCommand . option ( '--rev-id' , dest = 'rev_id' , default = None , help = 'Specify a hardcoded revision id instead of generating one' ) #NEWLINE# @ MigrateCommand . option ( '--version-path' , dest = 'version_path' , default = None , help = 'Specify specific path from config for version file' ) #NEWLINE# @ MigrateCommand . option ( '--branch-label' , dest = 'branch_label' , default = None , help = 'Specify a branch label to apply to the new revision' ) #NEWLINE# @ MigrateCommand . option ( '--splice' , dest = 'splice' , action = 'store_true' , default = False , help = 'Allow a non-head revision as the "head" to splice onto' ) #NEWLINE# @ MigrateCommand . option ( '--head' , dest = 'head' , default = 'head' , help = 'Specify head revision or <branchname>@head to base new revision on' ) #NEWLINE# @ MigrateCommand . option ( '--sql' , dest = 'sql' , action = 'store_true' , default = False , help = "Don't emit SQL to database - dump to standard output instead" ) #NEWLINE# @ MigrateCommand . option ( '--autogenerate' , dest = 'autogenerate' , action = 'store_true' , default = False , help = 'Populate revision script with andidate migration operatons, based on comparison of database to model' ) #NEWLINE# @ MigrateCommand . option ( '-m' , '--message' , dest = 'message' , default = None ) #NEWLINE# @ MigrateCommand . option ( '-d' , '--directory' , dest = 'directory' , default = None , help = "migration script directory (default is 'migrations')" ) #NEWLINE# def revision( directory = None , message = None , autogenerate = False , sql = False , head = 'head' , splice = False , branch_label = None , version_path = None , rev_id = None ) : #NEWLINE# #INDENT# 'Create a new revision file.' #NEWLINE# config = current_app . extensions [ 'migrate' ] . migrate . get_config ( directory ) #NEWLINE# if ( alembic_version >= ( 0 , 7 , 0 ) ) : #NEWLINE# #INDENT# command . revision ( config , message , autogenerate = autogenerate , sql = sql , head = head , splice = splice , branch_label = branch_label , version_path = version_path , rev_id = rev_id ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# command . revision ( config , message , autogenerate = autogenerate , sql = sql )