~ubuntu-branches/ubuntu/vivid/ironic/vivid-updates

« back to all changes in this revision

Viewing changes to ironic/db/sqlalchemy/alembic/versions/1e1d5ace7dc6_add_inspection_started_at_and_.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2015-03-30 11:14:57 UTC
  • mfrom: (1.2.6)
  • Revision ID: package-import@ubuntu.com-20150330111457-kr4ju3guf22m4vbz
Tags: 2015.1~b3-0ubuntu1
* New upstream release.
  + d/control: 
    - Align with upstream dependencies.
    - Add dh-python to build-dependencies.
    - Add psmisc as a dependency. (LP: #1358820)
  + d/p/fix-requirements.patch: Rediffed.
  + d/ironic-conductor.init.in: Fixed typos in LSB headers,
    thanks to JJ Asghar. (LP: #1429962)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
 
2
#    not use this file except in compliance with the License. You may obtain
 
3
#    a copy of the License at
 
4
#
 
5
#         http://www.apache.org/licenses/LICENSE-2.0
 
6
#
 
7
#    Unless required by applicable law or agreed to in writing, software
 
8
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 
9
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 
10
#    License for the specific language governing permissions and limitations
 
11
#    under the License.
 
12
 
 
13
"""add inspection_started_at and inspection_finished_at
 
14
 
 
15
Revision ID: 1e1d5ace7dc6
 
16
Revises: 3ae36a5f5131
 
17
Create Date: 2015-02-26 10:46:46.861927
 
18
 
 
19
"""
 
20
 
 
21
# revision identifiers, used by Alembic.
 
22
revision = '1e1d5ace7dc6'
 
23
down_revision = '3ae36a5f5131'
 
24
 
 
25
from alembic import op
 
26
import sqlalchemy as sa
 
27
 
 
28
 
 
29
def upgrade():
 
30
    op.add_column('nodes', sa.Column('inspection_started_at',
 
31
                                     sa.DateTime(),
 
32
                                     nullable=True))
 
33
    op.add_column('nodes', sa.Column('inspection_finished_at',
 
34
                                     sa.DateTime(),
 
35
                                     nullable=True))
 
36
 
 
37
 
 
38
def downgrade():
 
39
    op.drop_column('nodes', 'inspection_started_at')
 
40
    op.drop_column('nodes', 'inspection_finished_at')