Commit ce185f91 authored by Hinrikus Wolf's avatar Hinrikus Wolf

add is_meta-field to Statement-Table

parent 7367f736
"""empty message
Revision ID: bdf979c44e
Revises: 1f952551533
Create Date: 2015-11-08 11:21:07.739141
"""
# revision identifiers, used by Alembic.
revision = 'bdf979c44e'
down_revision = '1f952551533'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please adjust! ###
op.add_column('statements', sa.Column('is_meta', sa.Boolean(), nullable=True))
### end Alembic commands ###
def downgrade():
### commands auto generated by Alembic - please adjust! ###
op.drop_column('statements', 'is_meta')
### end Alembic commands ###
......@@ -157,6 +157,7 @@ class Statement(db.Model):
insertion_time = db.Column(db.DateTime)
executed = db.Column(db.Boolean)
execution_time = db.Column(db.DateTime)
is_meta = db.Column(db.Boolean, default=False)
speaker = relationship("Speaker", backref=backref("statements",order_by=id))
topic = relationship("Topic", backref=backref("statements",order_by=id))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment