mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-12 09:00:40 +00:00
Add more metadate to corpus files
This commit is contained in:
44
migrations/versions/ded5a37f8a7b_.py
Normal file
44
migrations/versions/ded5a37f8a7b_.py
Normal file
@ -0,0 +1,44 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: ded5a37f8a7b
|
||||
Revises: 776761fb7466
|
||||
Create Date: 2020-01-08 14:39:32.182439
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'ded5a37f8a7b'
|
||||
down_revision = '776761fb7466'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('corpus_files', sa.Column('address', sa.String(length=255), nullable=True))
|
||||
op.add_column('corpus_files', sa.Column('booktitle', sa.String(length=255), nullable=True))
|
||||
op.add_column('corpus_files', sa.Column('chapter', sa.String(length=255), nullable=True))
|
||||
op.add_column('corpus_files', sa.Column('editor', sa.String(length=255), nullable=True))
|
||||
op.add_column('corpus_files', sa.Column('institution', sa.String(length=255), nullable=True))
|
||||
op.add_column('corpus_files', sa.Column('journal', sa.String(length=255), nullable=True))
|
||||
op.add_column('corpus_files', sa.Column('pages', sa.String(length=255), nullable=True))
|
||||
op.add_column('corpus_files', sa.Column('publisher', sa.String(length=255), nullable=True))
|
||||
op.add_column('corpus_files', sa.Column('school', sa.String(length=255), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('corpus_files', 'school')
|
||||
op.drop_column('corpus_files', 'publisher')
|
||||
op.drop_column('corpus_files', 'pages')
|
||||
op.drop_column('corpus_files', 'journal')
|
||||
op.drop_column('corpus_files', 'institution')
|
||||
op.drop_column('corpus_files', 'editor')
|
||||
op.drop_column('corpus_files', 'chapter')
|
||||
op.drop_column('corpus_files', 'booktitle')
|
||||
op.drop_column('corpus_files', 'address')
|
||||
# ### end Alembic commands ###
|
Reference in New Issue
Block a user