# Code generated by github.com/lolopinto/ent/ent, DO NOT edit. 

"""add edge UserToInvitedEventsEdge
modify edge EventToInvitedEdge

Revision ID: 9d5ec068d4fd
Revises: <PASSWORD>
Create Date: 2019-10-17 02:39:07.014756+00:00

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = 'a4fb94adb<PASSWORD>'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_edges(
      [
        {'edge_name': 'UserToInvitedEventsEdge', 'edge_type': 'e89302ca-c76b-41ad-a823-9e3964b821dd', 'edge_table': 'event_invited_edges', 'symmetric_edge': False, 'inverse_edge_type': '12a5ac62-1f9a-4fd7-b38f-a6d229ace12c'},
      ]
    )
    op.modify_edge(
      '12a5ac62-1f9a-4fd7-b38f-a6d229ace12c',
        {'edge_name': 'EventToInvitedEdge', 'edge_type': '12a5ac62-1f9a-4fd7-b38f-a6d229ace12c', 'edge_table': 'event_invited_edges', 'symmetric_edge': False, 'inverse_edge_type': 'e89302ca-c76b-41ad-a823-9e3964b821dd'},

    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.modify_edge(
      '12a5ac62-1f9a-4fd7-b38f-a6d229ace12c',
        {'edge_type': UUID('12a5ac62-1f9a-4fd7-b38f-a6d229ace12c'), 'edge_name': 'EventToInvitedEdge', 'symmetric_edge': False, 'inverse_edge_type': None, 'edge_table': 'event_invited_edges'},

    )
    op.remove_edges(
      [
        {'edge_name': 'UserToInvitedEventsEdge', 'edge_type': 'e89302ca-c76b-41ad-a823-9e3964b821dd', 'edge_table': 'event_invited_edges', 'symmetric_edge': False, 'inverse_edge_type': '12a5ac62-1f9a-4fd7-b38f-a6d229ace12c'},
      ]
    )
    # ### end Alembic commands ###
