36116bb7a69b_add_the_url_field_to_project.py 569 B

1234567891011121314151617181920212223242526272829
  1. """Add the url field to project
  2. Revision ID: 36116bb7a69b
  3. Revises: abc71fd60fa
  4. Create Date: 2015-06-11 12:36:33.544046
  5. """
  6. # revision identifiers, used by Alembic.
  7. revision = '36116bb7a69b'
  8. down_revision = 'abc71fd60fa'
  9. from alembic import op
  10. import sqlalchemy as sa
  11. def upgrade():
  12. ''' Add the column url to the table projects.
  13. '''
  14. op.add_column(
  15. 'projects',
  16. sa.Column('url', sa.Text, nullable=True)
  17. )
  18. def downgrade():
  19. ''' Remove the column merge_status from the table projects.
  20. '''
  21. op.drop_column('projects', 'url')