summaryrefslogtreecommitdiff
path: root/alembic/script.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-11-22 18:00:48 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2014-11-22 18:00:48 -0500
commit27629ae73fcbb94fc74e51b83bbb0283876bf2a8 (patch)
tree718c1552d27fa630786f7f0eff5e910851bafc59 /alembic/script.py
parentfe533d5c5148d42f158cb76cf900a53283b00f8f (diff)
downloadalembic-27629ae73fcbb94fc74e51b83bbb0283876bf2a8.tar.gz
- fixes
Diffstat (limited to 'alembic/script.py')
-rw-r--r--alembic/script.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/alembic/script.py b/alembic/script.py
index aa87704..79fe01e 100644
--- a/alembic/script.py
+++ b/alembic/script.py
@@ -409,7 +409,7 @@ class ScriptDirectory(object):
def generate_revision(
self, revid, message, head=None,
refresh=False, splice=False, branch_labels=None,
- version_path=None, **kw):
+ version_path=None, depends_on=None, **kw):
"""Generate a new revision file.
This runs the ``script.py.mako`` template, given
@@ -488,6 +488,7 @@ class ScriptDirectory(object):
down_revision=revision.tuple_rev_as_scalar(
tuple(h.revision if h is not None else None for h in heads)),
branch_labels=util.to_tuple(branch_labels),
+ depends_on=revision.tuple_rev_as_scalar(depends_on),
create_date=create_date,
comma=util.format_as_comma,
message=message if message is not None else ("empty message"),