<filename>alembic/versions/58cdd82df884_added_assign_columns.py
"""Added assign columns

Revision ID: 58cdd82df884
Revises: 3<PASSWORD>
Create Date: 2014-06-19 16:12:49.986840

"""

# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = 'b54ce37bde0'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column('task', sa.Column('assigned_date', sa.DateTime(), nullable=True))
    op.add_column(
        'task',
        sa.Column('assigned_to_id', sa.Integer(), sa.ForeignKey('users.id'),
                  nullable=True)
    )


def downgrade():
    op.drop_column('task', 'assigned_to_id')
    op.drop_column('task', 'assigned_date')

<filename>alembic/versions/58cdd82df884_added_assign_columns.py
"""Added assign columns

Revision ID: 58cdd82df884
Revises: 3<PASSWORD>
Create Date: 2014-06-19 16:12:49.986840

"""

# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = 'b54ce37bde0'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column('task', sa.Column('assigned_date', sa.DateTime(), nullable=True))
    op.add_column(
        'task',
        sa.Column('assigned_to_id', sa.Integer(), sa.ForeignKey('users.id'),
                  nullable=True)
    )


def downgrade():
    op.drop_column('task', 'assigned_to_id')
    op.drop_column('task', 'assigned_date')

Added assign columns  Revision ID: 58cdd82df884 Revises: 3<PASSWORD> Create Date: 2014-06-19 16:12:49.986840 # revision identifiers, used by Alembic.