diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-11-20 18:08:02 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-11-20 18:08:02 -0500 |
commit | 5c747a068b539cec9dd88836427f57352f3f0735 (patch) | |
tree | 46fe04c30ee7f7f72d45d5d987868889718095ff /alembic/templates | |
parent | 0b63884a2ce2b4b89f2ddf0db7fba47fce5540f0 (diff) | |
download | alembic-5c747a068b539cec9dd88836427f57352f3f0735.tar.gz |
- The "multiple heads / branches" feature has now landed. This is
by far the most significant change Alembic has seen since its inception;
while the workflow of most commands hasn't changed, and the format
of version files and the ``alembic_version`` table are unchanged as well,
a new suite of features opens up in the case where multiple version
files refer to the same parent, or to the "base". Merging of
branches, operating across distinct named heads, and multiple
independent bases are now all supported. The feature incurs radical
changes to the internals of versioning and traversal, and should be
treated as "beta mode" for the next several subsequent releases
within 0.7.
fixes #167
Diffstat (limited to 'alembic/templates')
-rw-r--r-- | alembic/templates/generic/script.py.mako | 3 | ||||
-rw-r--r-- | alembic/templates/multidb/script.py.mako | 3 | ||||
-rw-r--r-- | alembic/templates/pylons/script.py.mako | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/alembic/templates/generic/script.py.mako b/alembic/templates/generic/script.py.mako index 9570201..59606db 100644 --- a/alembic/templates/generic/script.py.mako +++ b/alembic/templates/generic/script.py.mako @@ -1,7 +1,7 @@ """${message} Revision ID: ${up_revision} -Revises: ${down_revision} +Revises: ${down_revision | comma,n} Create Date: ${create_date} """ @@ -9,6 +9,7 @@ Create Date: ${create_date} # revision identifiers, used by Alembic. revision = ${repr(up_revision)} down_revision = ${repr(down_revision)} +branch_labels = ${repr(branch_labels)} from alembic import op import sqlalchemy as sa diff --git a/alembic/templates/multidb/script.py.mako b/alembic/templates/multidb/script.py.mako index a638b2d..fb923dc 100644 --- a/alembic/templates/multidb/script.py.mako +++ b/alembic/templates/multidb/script.py.mako @@ -4,7 +4,7 @@ import re %>"""${message} Revision ID: ${up_revision} -Revises: ${down_revision} +Revises: ${down_revision | comma,n} Create Date: ${create_date} """ @@ -12,6 +12,7 @@ Create Date: ${create_date} # revision identifiers, used by Alembic. revision = ${repr(up_revision)} down_revision = ${repr(down_revision)} +branch_labels = ${repr(branch_labels)} from alembic import op import sqlalchemy as sa diff --git a/alembic/templates/pylons/script.py.mako b/alembic/templates/pylons/script.py.mako index 9570201..59606db 100644 --- a/alembic/templates/pylons/script.py.mako +++ b/alembic/templates/pylons/script.py.mako @@ -1,7 +1,7 @@ """${message} Revision ID: ${up_revision} -Revises: ${down_revision} +Revises: ${down_revision | comma,n} Create Date: ${create_date} """ @@ -9,6 +9,7 @@ Create Date: ${create_date} # revision identifiers, used by Alembic. revision = ${repr(up_revision)} down_revision = ${repr(down_revision)} +branch_labels = ${repr(branch_labels)} from alembic import op import sqlalchemy as sa |