Script 26bf5b9a4dd0_indeces_for_faster_build_selection_py
[hide private]
[frames] | no frames]

Source Code for Script script-26bf5b9a4dd0_indeces_for_faster_build_selection_py

 1  """add some indeces for faster build selection 
 2   
 3  Revision ID: 26bf5b9a4dd0 
 4  Revises: 3576fc77fb31 
 5  Create Date: 2018-01-24 13:36:54.465668 
 6   
 7  """ 
 8   
 9  # revision identifiers, used by Alembic. 
10  revision = '26bf5b9a4dd0' 
11  down_revision = '3576fc77fb31' 
12   
13  from alembic import op 
14   
15   
16 -def upgrade():
17 ### commands auto generated by Alembic - please adjust! ### 18 op.create_index('build_filter', 'build', ['source_type', 'canceled'], unique=False) 19 op.create_index('build_order', 'build', ['is_background', 'id'], unique=False)
20 ### end Alembic commands ### 21 22
23 -def downgrade():
24 ### commands auto generated by Alembic - please adjust! ### 25 op.drop_index('build_order', table_name='build') 26 op.drop_index('build_filter', table_name='build')
27 ### end Alembic commands ### 28