42 lines
1.2 KiB
Python
42 lines
1.2 KiB
Python
# Copyright (c) 2017 Red Hat, Inc.
|
|
#
|
|
# This file is part of ARA: Ansible Run Analysis.
|
|
#
|
|
# ARA is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# ARA is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with ARA. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
"""ansible_version
|
|
|
|
Revision ID: 22aa8072d705
|
|
Revises: 2a0c6b92010a
|
|
Create Date: 2017-02-12 20:00:04.269622
|
|
|
|
"""
|
|
# flake8: noqa
|
|
# revision identifiers, used by Alembic.
|
|
revision = '22aa8072d705'
|
|
down_revision = '2a0c6b92010a'
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
def upgrade():
|
|
op.add_column('playbooks', sa.Column('ansible_version', sa.String(length=255), nullable=True))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
op.drop_column('playbooks', 'ansible_version')
|
|
# ### end Alembic commands ###
|