Removed deallocated_at from the macs index

JIRA:NCP-1823
This commit is contained in:
Justin Hammond
2016-06-02 10:17:50 -05:00
parent 2a116b962c
commit 0e17d61e46
2 changed files with 30 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
"""drop deallocated_at from mac addresses index
Revision ID: 2a116b962c95
Revises: 41837dc547ce3
Create Date: 2016-06-02 19:26:27.899610
"""
# revision identifiers, used by Alembic.
revision = '2a116b962c95'
down_revision = '41837dc547ce3'
from alembic import op
def upgrade():
op.drop_index(op.f('ix_quark_mac_addresses_reallocation'),
table_name='quark_mac_addresses')
op.create_index(op.f('ix_quark_mac_addresses_reallocation'),
'quark_mac_addresses', ['deallocated'],
unique=False)
def downgrade():
op.drop_index(op.f('ix_quark_mac_addresses_reallocation'),
table_name='quark_mac_addresses')
op.create_index(op.f('ix_quark_mac_addresses_reallocation'),
'quark_mac_addresses', ['deallocated', 'deallocated_at'],
unique=False)

View File

@@ -1 +1 @@
41837dc547ce3
2a116b962c95