summaryrefslogtreecommitdiff
path: root/alembic/batch.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-11-06 19:37:49 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2014-11-06 19:37:49 -0500
commit0933f08dc5877e7e1bb2597d8f9326a29d3e822a (patch)
tree6d6e6023796ddcbf170413dfd457371f795d3743 /alembic/batch.py
parent94024c2d2d66d5fbe875d90ec722cac4cf1601f7 (diff)
downloadalembic-0933f08dc5877e7e1bb2597d8f9326a29d3e822a.tar.gz
- add support for autogenerate to include "batch"
Diffstat (limited to 'alembic/batch.py')
-rw-r--r--alembic/batch.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/alembic/batch.py b/alembic/batch.py
index 96e12f4..26a148d 100644
--- a/alembic/batch.py
+++ b/alembic/batch.py
@@ -1,7 +1,8 @@
class BatchOperationsImpl(object):
- def __init__(self, operations, table_name, recreate):
+ def __init__(self, operations, table_name, schema, recreate):
self.operations = operations
self.table_name = table_name
+ self.schema = schema
self.recreate = recreate
self.batch = []
@@ -33,6 +34,7 @@ class BatchOperationsImpl(object):
)
def add_column(self, *arg, **kw):
+ # TODO: omit table and schema names from all commands
self.batch.append(
("add_column", arg, kw)
)