diff options
Diffstat (limited to 'ironic/db')
-rw-r--r-- | ironic/db/sqlalchemy/alembic/versions/b9117ac17882_add_node_deploy_step.py | 33 | ||||
-rw-r--r-- | ironic/db/sqlalchemy/models.py | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/ironic/db/sqlalchemy/alembic/versions/b9117ac17882_add_node_deploy_step.py b/ironic/db/sqlalchemy/alembic/versions/b9117ac17882_add_node_deploy_step.py new file mode 100644 index 000000000..6d2b286b3 --- /dev/null +++ b/ironic/db/sqlalchemy/alembic/versions/b9117ac17882_add_node_deploy_step.py @@ -0,0 +1,33 @@ +# 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. + +"""add deploy_step to node + +Revision ID: b9117ac17882 +Revises: fb3f10dd262e +Create Date: 2018-06-19 22:31:45.668156 + +""" + +from alembic import op +import sqlalchemy as sa + +# revision identifiers, used by Alembic. +revision = 'b9117ac17882' +down_revision = 'fb3f10dd262e' + + +def upgrade(): + op.add_column('nodes', sa.Column('deploy_step', sa.Text(), + nullable=True)) diff --git a/ironic/db/sqlalchemy/models.py b/ironic/db/sqlalchemy/models.py index f548758dc..f7ca076c8 100644 --- a/ironic/db/sqlalchemy/models.py +++ b/ironic/db/sqlalchemy/models.py @@ -144,6 +144,7 @@ class Node(Base): driver_info = Column(db_types.JsonEncodedDict) driver_internal_info = Column(db_types.JsonEncodedDict) clean_step = Column(db_types.JsonEncodedDict) + deploy_step = Column(db_types.JsonEncodedDict) resource_class = Column(String(80), nullable=True) raid_config = Column(db_types.JsonEncodedDict) |