mirror of
https://github.com/apache/superset.git
synced 2026-06-07 08:39:25 +00:00
26 lines
493 B
Python
26 lines
493 B
Python
"""Adding verbose_name to tablecolumn
|
|
|
|
Revision ID: f0fbf6129e13
|
|
Revises: c3a8f8611885
|
|
Create Date: 2016-05-01 12:21:18.331191
|
|
|
|
"""
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'f0fbf6129e13'
|
|
down_revision = 'c3a8f8611885'
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
def upgrade():
|
|
op.add_column(
|
|
'table_columns',
|
|
sa.Column('verbose_name', sa.String(length=1024),
|
|
nullable=True))
|
|
|
|
|
|
def downgrade():
|
|
op.drop_column('table_columns', 'verbose_name')
|