mirror of
https://github.com/apache/superset.git
synced 2026-06-07 16:49:17 +00:00
db version bug walkaround
This commit is contained in:
@@ -15,8 +15,14 @@ import sqlalchemy as sa
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.add_column('tables', sa.Column('timestamp_format', sa.String(length=256), nullable=True))
|
||||
try:
|
||||
op.add_column('tables', sa.Column('timestamp_format', sa.String(length=256), nullable=True))
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_column('tables', 'timestamp_format')
|
||||
try:
|
||||
op.drop_column('tables', 'timestamp_format')
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user