#NEWLINE# def do_upgrade_downgrade( config , cmd ) : #NEWLINE# #INDENT# if ( ( not CONF . command . revision ) and ( not CONF . command . delta ) ) : #NEWLINE# #INDENT# raise SystemExit ( _ ( 'You must provide a revision or relative delta' ) ) #NEWLINE# #UNINDENT# revision = CONF . command . revision #NEWLINE# if CONF . command . delta : #NEWLINE# #INDENT# sign = ( '+' if ( CONF . command . name == 'upgrade' ) else '-' ) #NEWLINE# revision = ( sign + str ( CONF . command . delta ) ) #NEWLINE# #UNINDENT# do_alembic_command ( config , cmd , revision , sql = CONF . command . sql )