mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-12 09:00:40 +00:00
Change corpus file model to save metadata.
This commit is contained in:
32
migrations/versions/abf60427ff84_.py
Normal file
32
migrations/versions/abf60427ff84_.py
Normal file
@ -0,0 +1,32 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: abf60427ff84
|
||||
Revises: da9fd175af8c
|
||||
Create Date: 2019-10-28 14:43:39.691313
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'abf60427ff84'
|
||||
down_revision = 'da9fd175af8c'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('corpus_files', sa.Column('author', sa.String(length=64), nullable=True))
|
||||
op.add_column('corpus_files', sa.Column('publishing_year', sa.Integer(), nullable=True))
|
||||
op.add_column('corpus_files', sa.Column('title', sa.String(length=64), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('corpus_files', 'title')
|
||||
op.drop_column('corpus_files', 'publishing_year')
|
||||
op.drop_column('corpus_files', 'author')
|
||||
# ### end Alembic commands ###
|
Reference in New Issue
Block a user