summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Goirand <thomas@goirand.fr>2014-03-03 22:27:57 +0800
committerSean Dague <sean.dague@samsung.com>2014-03-05 08:20:54 -0500
commit7161cf2c9e383bbafe9d018058e23304c6b4edc2 (patch)
tree8d5ea7db45341f9f3e71fe1b7de28a958d4dbdd5
parentb58b4a353cd928944cbe418903e6a13bf2914b39 (diff)
downloadsqalchemy-migrate-7161cf2c9e383bbafe9d018058e23304c6b4edc2.tar.gz
Replace AbstractType by TypeEngine
AbstractType not longer exists in the class hierarchy for types. TypeEngine was its direct descendant, so use that instead. Change-Id: Idbfaee4b0d3acbc4795913ddf2ab4e1c9b6d065c
-rw-r--r--migrate/changeset/schema.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/migrate/changeset/schema.py b/migrate/changeset/schema.py
index 073379c..913b90f 100644
--- a/migrate/changeset/schema.py
+++ b/migrate/changeset/schema.py
@@ -334,7 +334,7 @@ class ColumnDelta(DictMixin, sqlalchemy.schema.SchemaItem):
while len(p):
if isinstance(p[0], basestring):
k.setdefault('name', p.pop(0))
- elif isinstance(p[0], sqlalchemy.types.AbstractType):
+ elif isinstance(p[0], sqlalchemy.types.TypeEngine):
k.setdefault('type', p.pop(0))
elif callable(p[0]):
p[0] = p[0]()