mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-13 09:30:40 +00:00
Restructure project
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
"""empty message
|
||||
"""Initial database setup
|
||||
|
||||
Revision ID: 9e8d7d15d950
|
||||
Revises:
|
||||
|
31
migrations/versions/f9070ff1fa4a_.py
Normal file
31
migrations/versions/f9070ff1fa4a_.py
Normal file
@ -0,0 +1,31 @@
|
||||
"""Remove token entries for rudimentary API authentication mechanism
|
||||
|
||||
Revision ID: f9070ff1fa4a
|
||||
Revises: 9e8d7d15d950
|
||||
Create Date: 2022-09-01 13:46:47.425268
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'f9070ff1fa4a'
|
||||
down_revision = '9e8d7d15d950'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_index('ix_users_token', table_name='users')
|
||||
op.drop_column('users', 'token')
|
||||
op.drop_column('users', 'token_expiration')
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('users', sa.Column('token_expiration', sa.DateTime(), autoincrement=False, nullable=True))
|
||||
op.add_column('users', sa.Column('token', sa.VARCHAR(length=32), autoincrement=False, nullable=True))
|
||||
op.create_index('ix_users_token', 'users', ['token'], unique=False)
|
||||
# ### end Alembic commands ###
|
Reference in New Issue
Block a user