Fix migrations on Python 2.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 30 Sep 2014 21:34:15 +0000 (16:34 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 30 Sep 2014 21:34:15 +0000 (16:34 -0500)
This commit sponsored by Loïc Grobol.  Thank you!

mediagoblin/db/migrations.py

index 349d16d5710ab1576ceea5494b5ee3b2640ba1a2..b5b5a026c79518dc251c4de6f3767c1481ac67eb 100644 (file)
@@ -19,6 +19,9 @@ import uuid
 
 import six
 
+if six.PY2:
+    import migrate
+
 from sqlalchemy import (MetaData, Table, Column, Boolean, SmallInteger,
                         Integer, Unicode, UnicodeText, DateTime,
                         ForeignKey, Date, Index)