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
5
# http://www.apache.org/licenses/LICENSE-2.0
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
13
"""add conductor_affinity and online
15
Revision ID: 487deb87cc9d
17
Create Date: 2014-09-26 16:16:30.988900
21
# revision identifiers, used by Alembic.
22
revision = '487deb87cc9d'
23
down_revision = '3bea56f25597'
25
from alembic import op
26
import sqlalchemy as sa
32
sa.Column('online', sa.Boolean(), default=True))
35
sa.Column('conductor_affinity', sa.Integer(),
36
sa.ForeignKey('conductors.id',
37
name='nodes_conductor_affinity_fk'),
42
op.drop_constraint('nodes_conductor_affinity_fk', 'nodes',
44
op.drop_column('nodes', 'conductor_affinity')
45
op.drop_column('conductors', 'online')