#   Copyright 2017 Red Hat, Inc. All Rights Reserved.
#
#   Licensed under the Apache License, Version 2.0 (the "License"); you may
#   not use this file except in compliance with the License. You may obtain
#   a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#   WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#   License for the specific language governing permissions and limitations
#   under the License.

"""ansible_metadata

Revision ID: 5716083d63f5
Revises: 22aa8072d705
Create Date: 2017-05-02 13:34:41.150156

"""
# flake8: noqa
# revision identifiers, used by Alembic.
revision = '5716083d63f5'
down_revision = '22aa8072d705'

from ara import models
from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column('playbooks', sa.Column('options', models.CompressedData((2 ** 32) - 1), nullable=True))
    op.add_column('tasks', sa.Column('tags', sa.Text(), nullable=True))
    # ### end Alembic commands ###


def downgrade():
    op.drop_column('tasks', 'tags')
    op.drop_column('playbooks', 'options')
    # ### end Alembic commands ###
