mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-26 11:24:18 +00:00
36 lines
935 B
Python
36 lines
935 B
Python
|
"""empty message
|
||
|
|
||
|
Revision ID: 4cf5e5606a83
|
||
|
Revises: e256f5cac75d
|
||
|
Create Date: 2020-07-13 08:30:57.369850
|
||
|
|
||
|
"""
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = '4cf5e5606a83'
|
||
|
down_revision = 'e256f5cac75d'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.create_table('query_results',
|
||
|
sa.Column('id', sa.Integer(), nullable=False),
|
||
|
sa.Column('user_id', sa.Integer(), nullable=True),
|
||
|
sa.Column('filename', sa.String(length=255), nullable=True),
|
||
|
sa.Column('query_metadata', sa.JSON(), nullable=True),
|
||
|
sa.ForeignKeyConstraint(['user_id'], ['users.id'], ),
|
||
|
sa.PrimaryKeyConstraint('id')
|
||
|
)
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.drop_table('query_results')
|
||
|
# ### end Alembic commands ###
|