Fix migrations on Python 2.
This commit sponsored by Loïc Grobol. Thank you!
This commit is contained in:
@@ -19,6 +19,9 @@ import uuid
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
if six.PY2:
|
||||||
|
import migrate
|
||||||
|
|
||||||
from sqlalchemy import (MetaData, Table, Column, Boolean, SmallInteger,
|
from sqlalchemy import (MetaData, Table, Column, Boolean, SmallInteger,
|
||||||
Integer, Unicode, UnicodeText, DateTime,
|
Integer, Unicode, UnicodeText, DateTime,
|
||||||
ForeignKey, Date, Index)
|
ForeignKey, Date, Index)
|
||||||
|
|||||||
Reference in New Issue
Block a user