Fix EncryptedType error (#5007)
fixes https://github.com/apache/incubator-superset/issues/5005
This commit is contained in:
parent
c2eae96327
commit
e72c9cded3
|
|
@ -7,14 +7,14 @@ Create Date: 2015-11-21 11:18:00.650587
|
|||
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy_utils import EncryptedType
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '289ce07647b'
|
||||
down_revision = '2929af7925ed'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy_utils.types.encrypted import EncryptedType
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.add_column(
|
||||
|
|
@ -22,7 +22,7 @@ def upgrade():
|
|||
sa.Column(
|
||||
'password',
|
||||
EncryptedType(sa.String(1024)),
|
||||
nullable=True))
|
||||
nullable=True))
|
||||
|
||||
|
||||
def downgrade():
|
||||
|
|
|
|||
Loading…
Reference in New Issue