text: # Code generated by github.com/lolopinto/ent/ent, DO NOT edit.
  
  """add index contact_allow_list_edges_time_idx to contact_allow_list_edges
  add index contact_emails_contact_id_idx to contact_emails
  add index contacts_user_id_idx to contacts
  add index event_creator_edges_time_idx to event_creator_edges
  add index event_hosts_edges_time_idx to event_hosts_edges
  add index event_invited_edges_time_idx to event_invited_edges
  add index user_events_edges_time_idx to user_events_edges
  add index user_family_members_edges_time_idx to user_family_members_edges
  add index user_friends_edges_time_idx to user_friends_edges
  
  Revision ID: 03058bf01574
  Revises: 0071f2dadaee
  Create Date: 2021-08-29 17:39:16.596559+00:00
  
  """
  from alembic import op
  import sqlalchemy as sa
  from sqlalchemy.dialects import postgresql
  
  
  # revision identifiers, used by Alembic.
  revision = '03058bf01574'
  down_revision = '0071f2dadaee'
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_index('contact_allow_list_edges_time_idx',
                      'contact_allow_list_edges', ['time'], unique=False)
      op.create_index('contact_emails_contact_id_idx',
                      'contact_emails', ['contact_id'], unique=False)
      op.create_index('contacts_user_id_idx', 'contacts',
                      ['user_id'], unique=False)
      op.create_index('event_creator_edges_time_idx',
                      'event_creator_edges', ['time'], unique=False)
      op.create_index('event_hosts_edges_time_idx',
                      'event_hosts_edges', ['time'], unique=False)
      op.create_index('event_invited_edges_time_idx',
                      'event_invited_edges', ['time'], unique=False)
      op.create_index('user_events_edges_time_idx',
                      'user_events_edges', ['time'], unique=False)
      op.create_index('user_family_members_edges_time_idx',
                      'user_family_members_edges', ['time'], unique=False)
      op.create_index('user_friends_edges_time_idx',
                      'user_friends_edges', ['time'], unique=False)
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_index('user_friends_edges_time_idx',
                    table_name='user_friends_edges')
      op.drop_index('user_family_members_edges_time_idx',
                    table_name='user_family_members_edges')
      op.drop_index('user_events_edges_time_idx', table_name='user_events_edges')
      op.drop_index('event_invited_edges_time_idx',
                    table_name='event_invited_edges')
      op.drop_index('event_hosts_edges_time_idx', table_name='event_hosts_edges')
      op.drop_index('event_creator_edges_time_idx',
                    table_name='event_creator_edges')
      op.drop_index('contacts_user_id_idx', table_name='contacts')
      op.drop_index('contact_emails_contact_id_idx', table_name='contact_emails')
      op.drop_index('contact_allow_list_edges_time_idx',
                    table_name='contact_allow_list_edges')
      # ### end Alembic commands ###
  