mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Add status for Corpus model
This commit is contained in:
parent
ce39b24937
commit
3bfe50b15c
@ -436,6 +436,7 @@ class Corpus(db.Model):
|
||||
description = db.Column(db.String(255))
|
||||
title = db.Column(db.String(32))
|
||||
user_id = db.Column(db.Integer, db.ForeignKey('users.id'))
|
||||
status = db.Column(db.String(16))
|
||||
# Relationships
|
||||
files = db.relationship('CorpusFile',
|
||||
backref='corpus',
|
||||
|
28
migrations/versions/1210adfe1e34_.py
Normal file
28
migrations/versions/1210adfe1e34_.py
Normal file
@ -0,0 +1,28 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: 1210adfe1e34
|
||||
Revises: abf60427ff84
|
||||
Create Date: 2019-11-04 12:54:39.389263
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '1210adfe1e34'
|
||||
down_revision = 'abf60427ff84'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('corpora', sa.Column('status', sa.String(length=16), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('corpora', 'status')
|
||||
# ### end Alembic commands ###
|
Loading…
Reference in New Issue
Block a user