root / snf-pithos-backend / pithos / backends / lib / sqlalchemy / alembic / versions / 4c8ccdc58192_add_attributes_domai.py @ 595b2b0d
History | View | Annotate | Download (446 Bytes)
1 |
"""add attributes domain index
|
---|---|
2 |
|
3 |
Revision ID: 4c8ccdc58192
|
4 |
Revises: 27381099d477
|
5 |
Create Date: 2013-04-01 15:37:05.750288
|
6 |
|
7 |
"""
|
8 |
|
9 |
# revision identifiers, used by Alembic.
|
10 |
revision = '4c8ccdc58192'
|
11 |
down_revision = '27381099d477'
|
12 |
|
13 |
from alembic import op |
14 |
import sqlalchemy as sa |
15 |
|
16 |
|
17 |
def upgrade(): |
18 |
op.create_index('idx_attributes_domain', 'attributes', ['domain']) |
19 |
|
20 |
|
21 |
def downgrade(): |
22 |
op.drop_index('idx_attributes_domain', tablename='attributes') |