3c25e14b855b_add_an_avatar_email_for_project.py 599 B

123456789101112131415161718192021222324252627282930
  1. """add an avatar email for project
  2. Revision ID: 3c25e14b855b
  3. Revises: b5efae6bb23
  4. Create Date: 2015-06-08 12:05:13.832348
  5. """
  6. # revision identifiers, used by Alembic.
  7. revision = '3c25e14b855b'
  8. down_revision = 'b5efae6bb23'
  9. from alembic import op
  10. import sqlalchemy as sa
  11. def upgrade():
  12. ''' Add the column merge_status to the table projects.
  13. '''
  14. op.add_column(
  15. 'projects',
  16. sa.Column('avatar_email', sa.Text, nullable=True)
  17. )
  18. def downgrade():
  19. ''' Remove the column merge_status from the table projects.
  20. '''
  21. op.drop_column('projects', 'avatar_email')