1. dairiki
  2. alembic

Commits

Robbie Coomber  committed ecb0ede

Return the script object from command.revision

  • Participants
  • Parent commits 161a48a
  • Branches master

Comments (0)

Files changed (1)

File alembic/command.py

View file
             template_args=template_args,
         ):
             script.run_env()
-    script.generate_revision(util.rev_id(), message, **template_args)
+    return script.generate_revision(util.rev_id(), message, refresh=True,
+                                    **template_args)
 
 
 def upgrade(config, revision, sql=False, tag=None):