~ubuntu-branches/ubuntu/vivid/ceilometer/vivid

« back to all changes in this revision

Viewing changes to ceilometer/storage/sqlalchemy/alembic/versions/43b1a023dfaa_add_column_repeat_al.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2014-03-06 14:44:28 UTC
  • mto: (28.1.1 utopic-proposed) (1.2.1)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: package-import@ubuntu.com-20140306144428-rvphsh4igwyulzf0
Tags: upstream-2014.1~b3
Import upstream version 2014.1~b3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- encoding: utf-8 -*-
2
 
#
3
 
# Copyright © 2013 eNovance <licensing@enovance.com>
4
 
#
5
 
# Authors: Mehdi Abaakouk <mehdi.abaakouk@enovance.com>
6
 
#
7
 
# Licensed under the Apache License, Version 2.0 (the "License"); you may
8
 
# not use this file except in compliance with the License. You may obtain
9
 
# a copy of the License at
10
 
#
11
 
#      http://www.apache.org/licenses/LICENSE-2.0
12
 
#
13
 
# Unless required by applicable law or agreed to in writing, software
14
 
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15
 
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16
 
# License for the specific language governing permissions and limitations
17
 
# under the License.
18
 
"""Add column repeat_alarms
19
 
 
20
 
Revision ID: 43b1a023dfaa
21
 
Revises: None
22
 
Create Date: 2013-07-29 17:25:53.931326
23
 
 
24
 
"""
25
 
 
26
 
# revision identifiers, used by Alembic.
27
 
revision = '43b1a023dfaa'
28
 
down_revision = None
29
 
 
30
 
from alembic import op
31
 
import sqlalchemy as sa
32
 
 
33
 
 
34
 
def upgrade():
35
 
    op.add_column('alarm', sa.Column('repeat_actions',
36
 
                                     sa.Boolean,
37
 
                                     server_default=sa.sql.expression.false()))
38
 
 
39
 
 
40
 
def downgrade():
41
 
    op.drop_column('alarm', 'repeat_actions')