mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00
29 lines
618 B
Python
29 lines
618 B
Python
"""client-description
|
|
|
|
Revision ID: d68c98b66cd4
|
|
Revises: 99a28a4418e1
|
|
Create Date: 2018-04-13 10:50:17.968636
|
|
|
|
"""
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'd68c98b66cd4'
|
|
down_revision = '99a28a4418e1'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
def upgrade():
|
|
engine = op.get_bind().engine
|
|
tables = sa.inspect(engine).get_table_names()
|
|
if 'oauth_clients' in tables:
|
|
op.add_column(
|
|
'oauth_clients', sa.Column('description', sa.Unicode(length=1023))
|
|
)
|
|
|
|
|
|
def downgrade():
|
|
op.drop_column('oauth_clients', 'description')
|