Skip to content
Snippets Groups Projects
Commit ce185f91 authored by Hinrikus Wolf's avatar Hinrikus Wolf
Browse files

add is_meta-field to Statement-Table

parent 7367f736
No related branches found
No related tags found
No related merge requests found
"""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): ...@@ -157,6 +157,7 @@ class Statement(db.Model):
insertion_time = db.Column(db.DateTime) insertion_time = db.Column(db.DateTime)
executed = db.Column(db.Boolean) executed = db.Column(db.Boolean)
execution_time = db.Column(db.DateTime) execution_time = db.Column(db.DateTime)
is_meta = db.Column(db.Boolean, default=False)
speaker = relationship("Speaker", backref=backref("statements",order_by=id)) speaker = relationship("Speaker", backref=backref("statements",order_by=id))
topic = relationship("Topic", backref=backref("statements",order_by=id)) topic = relationship("Topic", backref=backref("statements",order_by=id))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment