301fba21d9b8_add_nodes_latest_ver.py 407 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""add nodes latest_version index

Revision ID: 301fba21d9b8
Revises: 54dbdde2d187
Create Date: 2014-02-07 13:39:10.221706

"""

# revision identifiers, used by Alembic.
revision = '301fba21d9b8'
down_revision = '54dbdde2d187'

from alembic import op


def upgrade():
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
17
    op.create_index('idx_latest_version', 'nodes', ['latest_version'])
18
19
20
21


def downgrade():
    op.drop_index('idx_latest_version', 'nodes')