1
0

38581a8fbae2_add_custom_field_data.py 581 B

12345678910111213141516171819202122232425
  1. """Add custom field data
  2. Revision ID: 38581a8fbae2
  3. Revises: 6addaed6008e
  4. Create Date: 2017-01-16 13:03:36.683188
  5. """
  6. # revision identifiers, used by Alembic.
  7. revision = '38581a8fbae2'
  8. down_revision = '6addaed6008e'
  9. from alembic import op
  10. import sqlalchemy as sa
  11. def upgrade():
  12. ''' Add a new drop-down list type to the custom fields. The list options
  13. need to be stored in the issue_keys table. '''
  14. op.add_column('issue_keys', sa.Column('key_data', sa.Text()))
  15. def downgrade():
  16. ''' Remove the key_data column '''
  17. op.drop_column('issue_keys', 'key_data')