def METHOD_NAME():
    ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint(u'discount_codes_event_id_fkey', 'discount_codes', type_='foreignkey')
    op.drop_constraint(u'discount_codes_marketer_id_fkey', 'discount_codes', type_='foreignkey')
    op.create_foreign_key(None, 'discount_codes', 'user', ['marketer_id'], ['id'], ondelete='CASCADE')
    op.create_foreign_key(None, 'discount_codes', 'events', ['event_id'], ['id'], ondelete='CASCADE')
    op.drop_constraint(u'event_invoices_user_id_fkey', 'event_invoices', type_='foreignkey')
    op.create_foreign_key(None, 'event_invoices', 'user', ['user_id'], ['id'], ondelete='SET NULL')
    op.drop_constraint(u'eventsusers_user_id_fkey', 'eventsusers', type_='foreignkey')
    op.create_foreign_key(None, 'eventsusers', 'user', ['user_id'], ['id'], ondelete='CASCADE')
    op.drop_constraint(u'invites_user_id_fkey', 'invites', type_='foreignkey')
    op.create_foreign_key(None, 'invites', 'user', ['user_id'], ['id'], ondelete='CASCADE')
    op.drop_constraint(u'notification_user_id_fkey', 'notification', type_='foreignkey')
    op.create_foreign_key(None, 'notification', 'user', ['user_id'], ['id'], ondelete='CASCADE')
    op.drop_constraint(u'permissions_service_id_fkey', 'permissions', type_='foreignkey')
    op.drop_constraint(u'permissions_role_id_fkey', 'permissions', type_='foreignkey')
    op.create_foreign_key(None, 'permissions', 'role', ['role_id'], ['id'], ondelete='CASCADE')
    op.create_foreign_key(None, 'permissions', 'service', ['service_id'], ['id'], ondelete='CASCADE')
    op.drop_constraint(u'role_invite_role_id_fkey', 'role_invite', type_='foreignkey')
    op.create_foreign_key(None, 'role_invite', 'role', ['role_id'], ['id'], ondelete='CASCADE')
    op.drop_constraint(u'session_session_type_id_fkey', 'session', type_='foreignkey')
    op.drop_constraint(u'session_microlocation_id_fkey', 'session', type_='foreignkey')
    op.drop_constraint(u'session_track_id_fkey', 'session', type_='foreignkey')
    op.create_foreign_key(None, 'session', 'microlocation', ['microlocation_id'], ['id'], ondelete='CASCADE')
    op.create_foreign_key(None, 'session', 'tracks', ['track_id'], ['id'], ondelete='CASCADE')
    op.create_foreign_key(None, 'session', 'session_type', ['session_type_id'], ['id'], ondelete='CASCADE')
    op.drop_constraint(u'speaker_user_id_fkey', 'speaker', type_='foreignkey')
    op.create_foreign_key(None, 'speaker', 'user', ['user_id'], ['id'], ondelete='SET NULL')
    op.drop_constraint(u'ticket_holders_order_id_fkey', 'ticket_holders', type_='foreignkey')
    op.create_foreign_key(None, 'ticket_holders', 'orders', ['order_id'], ['id'], ondelete='CASCADE')
    op.drop_constraint(u'user_detail_user_id_fkey', 'user_detail', type_='foreignkey')
    op.create_foreign_key(None, 'user_detail', 'user', ['user_id'], ['id'], ondelete='CASCADE')
    ### end Alembic commands ###