Blame alembic/versions/38581a8fbae2_add_custom_field_data.py
|
Mark Reynolds |
e18f6c |
"""Add custom field data
|
|
Mark Reynolds |
e18f6c |
|
|
Mark Reynolds |
e18f6c |
Revision ID: 38581a8fbae2
|
|
Mark Reynolds |
e18f6c |
Revises: 208b0cd232ab
|
|
Mark Reynolds |
e18f6c |
Create Date: 2017-01-16 13:03:36.683188
|
|
Mark Reynolds |
e18f6c |
|
|
Mark Reynolds |
e18f6c |
"""
|
|
Mark Reynolds |
e18f6c |
|
|
Mark Reynolds |
e18f6c |
# revision identifiers, used by Alembic.
|
|
Mark Reynolds |
e18f6c |
revision = '38581a8fbae2'
|
|
Mark Reynolds |
e18f6c |
down_revision = '208b0cd232ab'
|
|
Mark Reynolds |
e18f6c |
|
|
Mark Reynolds |
e18f6c |
from alembic import op
|
|
Mark Reynolds |
e18f6c |
import sqlalchemy as sa
|
|
Mark Reynolds |
e18f6c |
|
|
Mark Reynolds |
e18f6c |
|
|
Mark Reynolds |
e18f6c |
def upgrade():
|
|
Mark Reynolds |
e18f6c |
op.add_column('issue_keys', sa.Column('key_data', sa.Text()))
|
|
Mark Reynolds |
e18f6c |
|
|
Mark Reynolds |
e18f6c |
|
|
Mark Reynolds |
e18f6c |
def downgrade():
|
|
Mark Reynolds |
e18f6c |
op.drop_column('issue_keys', 'key_data')
|