diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-04-22 12:59:38 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-04-22 12:59:38 -0400 |
commit | a0511731dc98d3202d47a1568b4b58ac98be2c78 (patch) | |
tree | 4a21be33ec057e5c548a659eb86d1a0682a7c56e /alembic/script.py | |
parent | ea3b0591373ce02a3f0b696fe33507037251f406 (diff) | |
download | alembic-a0511731dc98d3202d47a1568b4b58ac98be2c78.tar.gz |
lots of TODOs for straight SQL mode
Diffstat (limited to 'alembic/script.py')
-rw-r--r-- | alembic/script.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/alembic/script.py b/alembic/script.py index 67aa654..9784d68 100644 --- a/alembic/script.py +++ b/alembic/script.py @@ -66,6 +66,9 @@ class ScriptDirectory(object): if script is None and lower is not None: raise util.CommandError("Couldn't find revision %s" % downrev) + # TODO: call range_ok -> as_sql and do as_sql validation + # here - range is required in as_sql mode, not allowed in + # non-as_sql mode. split into upgrade_to/upgrade_to_as_sql def upgrade_from(self, range_ok, destination, current_rev): if destination is not None and ':' in destination: if not range_ok: @@ -79,6 +82,9 @@ class ScriptDirectory(object): reversed(list(revs)) ] + # TODO: call range_ok -> as_sql and do as_sql validation + # here - range is required in as_sql mode, not allowed in + # non-as_sql mode. split into downgrade_to/downgrade_to_as_sql def downgrade_to(self, range_ok, destination, current_rev): if destination is not None and ':' in destination: if not range_ok: |