588eabcd394c_add_quick_replies_field_to_project.py 607 B

1234567891011121314151617181920212223242526272829
  1. """add quick_replies field to project
  2. Revision ID: 588eabcd394c
  3. Revises: 5083efccac7
  4. Create Date: 2016-11-17 16:12:36.624079
  5. """
  6. # revision identifiers, used by Alembic.
  7. revision = '588eabcd394c'
  8. down_revision = '349a3890596'
  9. from alembic import op
  10. import sqlalchemy as sa
  11. def upgrade():
  12. ''' Add the column _quick_replies to the table projects
  13. '''
  14. op.add_column(
  15. 'projects',
  16. sa.Column('_quick_replies', sa.Text, nullable=True)
  17. )
  18. def downgrade():
  19. ''' Drop the column _quick_replies from the table projects.
  20. '''
  21. op.drop_column('projects', '_quick_replies')