Skip to content

Commit

Permalink
Update index creation to run with concurrent
Browse files Browse the repository at this point in the history
  • Loading branch information
acasajus committed Jul 28, 2023
1 parent 5f38cdb commit 44a433b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions migrations/versions/2023_072819_01827104004b_.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@


def upgrade():
op.execute('commit')
# ### commands auto generated by Alembic - please adjust! ###
op.create_index(op.f('ix_alias_hibp_last_check'), 'alias', ['hibp_last_check'], unique=False)
op.create_index('ix_bounce_created_at', 'bounce', ['created_at'], unique=False)
op.create_index('ix_monitoring_created_at', 'monitoring', ['created_at'], unique=False)
op.create_index('ix_transactional_email_created_at', 'transactional_email', ['created_at'], unique=False)
op.create_index(op.f('ix_users_activated'), 'users', ['activated'], unique=False)
op.create_index('ix_users_activated_trial_end_lifetime', 'users', ['activated', 'trial_end', 'lifetime'], unique=False)
op.create_index(op.f('ix_users_referral_id'), 'users', ['referral_id'], unique=False)
op.create_index(op.f('ix_alias_hibp_last_check'), 'alias', ['hibp_last_check'], unique=False, postgresql_concurrently=True)
op.create_index('ix_bounce_created_at', 'bounce', ['created_at'], unique=False, postgresql_concurrently=True)
op.create_index('ix_monitoring_created_at', 'monitoring', ['created_at'], unique=False, postgresql_concurrently=True)
op.create_index('ix_transactional_email_created_at', 'transactional_email', ['created_at'], unique=False, postgresql_concurrently=True)
op.create_index(op.f('ix_users_activated'), 'users', ['activated'], unique=False, postgresql_concurrently=True)
op.create_index('ix_users_activated_trial_end_lifetime', 'users', ['activated', 'trial_end', 'lifetime'], unique=False, postgresql_concurrently=True)
op.create_index(op.f('ix_users_referral_id'), 'users', ['referral_id'], unique=False, postgresql_concurrently=True)
# ### end Alembic commands ###


Expand Down

0 comments on commit 44a433b

Please sign in to comment.