mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 15:33:02 +00:00
remove alembic autogenerate statements
This commit is contained in:
@@ -18,7 +18,6 @@ import sqlalchemy as sa
|
||||
|
||||
def upgrade():
|
||||
tables = op.get_bind().engine.table_names()
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('api_tokens', sa.Column('created', sa.DateTime(), nullable=True))
|
||||
op.add_column('api_tokens', sa.Column('last_activity', sa.DateTime(), nullable=True))
|
||||
op.add_column('api_tokens', sa.Column('note', sa.Unicode(length=1023), nullable=True))
|
||||
@@ -27,11 +26,9 @@ def upgrade():
|
||||
op.add_column('oauth_access_tokens', sa.Column('last_activity', sa.DateTime(), nullable=True))
|
||||
op.create_foreign_key(None, 'oauth_access_tokens', 'oauth_clients', ['client_id'], ['identifier'], ondelete='CASCADE')
|
||||
op.create_foreign_key(None, 'oauth_codes', 'oauth_clients', ['client_id'], ['identifier'], ondelete='CASCADE')
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_constraint(None, 'oauth_codes', type_='foreignkey')
|
||||
op.drop_constraint(None, 'oauth_access_tokens', type_='foreignkey')
|
||||
op.drop_column('oauth_access_tokens', 'last_activity')
|
||||
@@ -39,4 +36,3 @@ def downgrade():
|
||||
op.drop_column('api_tokens', 'note')
|
||||
op.drop_column('api_tokens', 'last_activity')
|
||||
op.drop_column('api_tokens', 'created')
|
||||
# ### end Alembic commands ###
|
||||
|
Reference in New Issue
Block a user