mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-14 10:00:40 +00:00
Remove old result package
This commit is contained in:
43
web/migrations/versions/c3827cddea6e_.py
Normal file
43
web/migrations/versions/c3827cddea6e_.py
Normal file
@ -0,0 +1,43 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: c3827cddea6e
|
||||
Revises: 9d21b228d353
|
||||
Create Date: 2020-07-15 12:33:24.574579
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'c3827cddea6e'
|
||||
down_revision = '9d21b228d353'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_table('results')
|
||||
op.drop_table('result_files')
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.create_table('result_files',
|
||||
sa.Column('id', sa.INTEGER(), autoincrement=True, nullable=False),
|
||||
sa.Column('result_id', sa.INTEGER(), autoincrement=False, nullable=True),
|
||||
sa.Column('filename', sa.VARCHAR(length=255), autoincrement=False, nullable=True),
|
||||
sa.Column('dir', sa.VARCHAR(length=255), autoincrement=False, nullable=True),
|
||||
sa.ForeignKeyConstraint(['result_id'], ['results.id'], name='result_files_result_id_fkey'),
|
||||
sa.PrimaryKeyConstraint('id', name='result_files_pkey')
|
||||
)
|
||||
op.create_table('results',
|
||||
sa.Column('id', sa.INTEGER(), autoincrement=True, nullable=False),
|
||||
sa.Column('user_id', sa.INTEGER(), autoincrement=False, nullable=True),
|
||||
sa.Column('corpus_metadata', postgresql.JSON(astext_type=sa.Text()), autoincrement=False, nullable=True),
|
||||
sa.ForeignKeyConstraint(['user_id'], ['users.id'], name='results_user_id_fkey'),
|
||||
sa.PrimaryKeyConstraint('id', name='results_pkey')
|
||||
)
|
||||
# ### end Alembic commands ###
|
Reference in New Issue
Block a user