pagure-new/alembic/versions/36116bb7a69b_add_the_url_field_to_project.py

30 lines
560 B
Python
Raw Normal View History

2016-09-21 23:21:07 +00:00
"""Add the url field to project
Revision ID: 36116bb7a69b
Revises: abc71fd60fa
Create Date: 2015-06-11 12:36:33.544046
"""
# revision identifiers, used by Alembic.
revision = '36116bb7a69b'
down_revision = 'abc71fd60fa'
from alembic import op
import sqlalchemy as sa
def upgrade():
''' Add the column url to the table projects.
'''
op.add_column(
'projects',
sa.Column('url', sa.Text, nullable=True)
)
def downgrade():
''' Remove the column url from the table projects.
'''
op.drop_column('projects', 'url')