
# revision identifiers, used by Alembic.
revision = '1fd7b3e0b662'
down_revision = '2d8a350b4885'

from alembic import op


def upgrade():
    op.create_index(
        'ix_contact_ns_uid_provider_name',
        'contact',
        ['namespace_id', 'uid', 'provider_name'], unique=False)

    op.create_index(
        'ix_event_ns_uid_provider_name',
        'event',
        ['namespace_id', 'uid', 'provider_name'], unique=False)


def downgrade():
    raise Exception("Don't bother.")


# revision identifiers, used by Alembic.
revision = '1fd7b3e0b662'
down_revision = '5305d4ae30b4'

from alembic import op


def upgrade():
    op.create_index(
        'ix_contact_ns_uid_provider_name',
        'contact',
        ['namespace_id', 'uid', 'provider_name'], unique=False)

    op.create_index(
        'ix_event_ns_uid_provider_name',
        'event',
        ['namespace_id', 'uid', 'provider_name'], unique=False)


def downgrade():
    raise Exception("Don't bother.")

Fix migration history bug introduced with merge
Fix migration history bug introduced with merge

  
  # revision identifiers, used by Alembic.
  revision = '1fd7b3e0b662'
- down_revision = '2d8a350b4885'
+ down_revision = '5305d4ae30b4'
  
  from alembic import op
  
  
  def upgrade():
      op.create_index(
          'ix_contact_ns_uid_provider_name',
          'contact',
          ['namespace_id', 'uid', 'provider_name'], unique=False)
  
      op.create_index(
          'ix_event_ns_uid_provider_name',
          'event',
          ['namespace_id', 'uid', 'provider_name'], unique=False)
  
  
  def downgrade():
      raise Exception("Don't bother.")
  
Fix migration history bug introduced with merge
## Code Before:

# revision identifiers, used by Alembic.
revision = '1fd7b3e0b662'
down_revision = '2d8a350b4885'

from alembic import op


def upgrade():
    op.create_index(
        'ix_contact_ns_uid_provider_name',
        'contact',
        ['namespace_id', 'uid', 'provider_name'], unique=False)

    op.create_index(
        'ix_event_ns_uid_provider_name',
        'event',
        ['namespace_id', 'uid', 'provider_name'], unique=False)


def downgrade():
    raise Exception("Don't bother.")

## Instruction:
Fix migration history bug introduced with merge
## Code After:

# revision identifiers, used by Alembic.
revision = '1fd7b3e0b662'
down_revision = '5305d4ae30b4'

from alembic import op


def upgrade():
    op.create_index(
        'ix_contact_ns_uid_provider_name',
        'contact',
        ['namespace_id', 'uid', 'provider_name'], unique=False)

    op.create_index(
        'ix_event_ns_uid_provider_name',
        'event',
        ['namespace_id', 'uid', 'provider_name'], unique=False)


def downgrade():
    raise Exception("Don't bother.")
