Skip to content

Commit

Permalink
Update procfile 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Vijay Kurian committed Nov 28, 2019
1 parent b1f4057 commit 23480b5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions migrations/versions/8f472a009c88_.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
"""empty message
Revision ID: 8f472a009c88
Revises: cd68d64ae9e2
Create Date: 2019-11-28 12:23:45.880994
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '8f472a009c88'
down_revision = 'cd68d64ae9e2'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('results', sa.Column('score_line', sa.Integer(), nullable=True))
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('results', 'score_line')
# ### end Alembic commands ###
1 change: 1 addition & 0 deletions src/models/ResultModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class ResultModel(db.Model): # ResultModel class inherits from db.Model
confirmed = db.Column(db.Boolean, default=False, nullable=False)
created_at = db.Column(db.DateTime)
modified_at = db.Column(db.DateTime)
score_line = db.Column(db.Integer)

# class constructor
def __init__(self, data): # class constructor used to set the class attributes
Expand Down

0 comments on commit 23480b5

Please sign in to comment.