Blame alembic/versions/ef98dcb838e4_add_reactions_to_request_comments_py.py
|
Lubomír Sedlář |
59889e |
"""add_reactions_to_request_comments.py
|
|
Lubomír Sedlář |
59889e |
|
|
Lubomír Sedlář |
59889e |
Revision ID: ef98dcb838e4
|
|
Lubomír Sedlář |
59889e |
Revises: e34e799e4182
|
|
Lubomír Sedlář |
59889e |
Create Date: 2018-06-02 19:47:52.975503
|
|
Lubomír Sedlář |
59889e |
|
|
Lubomír Sedlář |
59889e |
"""
|
|
Lubomír Sedlář |
59889e |
|
|
Lubomír Sedlář |
59889e |
# revision identifiers, used by Alembic.
|
|
Lubomír Sedlář |
59889e |
revision = 'ef98dcb838e4'
|
|
Lubomír Sedlář |
59889e |
down_revision = 'e34e799e4182'
|
|
Lubomír Sedlář |
59889e |
|
|
Lubomír Sedlář |
59889e |
from alembic import op
|
|
Lubomír Sedlář |
59889e |
import sqlalchemy as sa
|
|
Lubomír Sedlář |
59889e |
|
|
Lubomír Sedlář |
59889e |
|
|
Lubomír Sedlář |
59889e |
def upgrade():
|
|
Lubomír Sedlář |
59889e |
''' Add the _reactions column to table pull_request_comments.
|
|
Lubomír Sedlář |
59889e |
'''
|
|
Lubomír Sedlář |
59889e |
op.add_column(
|
|
Lubomír Sedlář |
59889e |
'pull_request_comments',
|
|
Lubomír Sedlář |
59889e |
sa.Column('_reactions', sa.Text, nullable=True)
|
|
Lubomír Sedlář |
59889e |
)
|
|
Lubomír Sedlář |
59889e |
|
|
Lubomír Sedlář |
59889e |
|
|
Lubomír Sedlář |
59889e |
def downgrade():
|
|
Lubomír Sedlář |
59889e |
''' Remove the column _reactions from table pull_request_comments.
|
|
Lubomír Sedlář |
59889e |
'''
|
|
Lubomír Sedlář |
59889e |
op.drop_column('pull_request_comments', '_reactions')
|