def METHOD_NAME():
    op.alter_column('events', 'pay_by_stripe', new_column_name='can_pay_by_stripe')
    op.alter_column('events', 'pay_by_bank', new_column_name='can_pay_by_bank')
    op.alter_column('events', 'pay_by_paypal', new_column_name='can_pay_by_paypal')
    op.alter_column('events', 'pay_by_cheque', new_column_name='can_pay_by_cheque')
    op.alter_column('events', 'pay_onsite', new_column_name='can_pay_onsite')
    op.alter_column('events', 'tax_allow', new_column_name='is_tax_enabled')
    op.alter_column('events', 'ticket_include', new_column_name='is_ticketing_enabled')
    op.alter_column('events', 'has_session_speakers', new_column_name='has_sessions_speakers')
    op.alter_column('events', 'sponsors_enabled', new_column_name='is_sponsors_enabled')
    op.drop_column('events', 'email')
    op.alter_column('events_version', 'pay_by_stripe', new_column_name='can_pay_by_stripe')
    op.alter_column('events_version', 'pay_by_bank', new_column_name='can_pay_by_bank')
    op.alter_column('events_version', 'pay_by_paypal', new_column_name='can_pay_by_paypal')
    op.alter_column('events_version', 'pay_by_cheque', new_column_name='can_pay_by_cheque')
    op.alter_column('events_version', 'pay_onsite', new_column_name='can_pay_onsite')
    op.alter_column('events_version', 'tax_allow', new_column_name='is_tax_enabled')
    op.alter_column('events_version', 'ticket_include', new_column_name='is_ticketing_enabled')
    op.alter_column('events_version', 'has_session_speakers',
                    new_column_name='has_sessions_speakers')
    op.alter_column('events_version', 'sponsors_enabled', new_column_name='is_sponsors_enabled')
    op.drop_column('events_version', 'email')
    op.execute('ALTER TABLE events ALTER COLUMN show_map drop default')
    op.execute('ALTER TABLE events ALTER COLUMN show_map TYPE BOOLEAN USING (show_map::boolean)')
    op.execute('ALTER TABLE events ALTER COLUMN show_map SET DEFAULT TRUE')
    op.alter_column('events', 'show_map', new_column_name='is_map_shown')
    op.execute('ALTER TABLE events_version ALTER COLUMN show_map drop default')
    op.execute('ALTER TABLE events_version ALTER COLUMN show_map TYPE BOOLEAN USING (show_map::boolean)')
    op.execute('ALTER TABLE events_version ALTER COLUMN show_map SET DEFAULT TRUE')
    op.alter_column('events_version', 'show_map', new_column_name='is_map_shown')
    op.execute('UPDATE events SET state = LOWER(state)')
    op.execute('UPDATE events_version SET state = LOWER(state)')