res_pjsip: Fix alembic downgrade for boolean columns.

When downgrading, ensure that we don't touch columns that didn't
actually change during upgrade.
This commit is contained in:
Sean Bright 2024-03-18 17:12:34 -04:00 committed by asterisk-org-access-app[bot]
parent 49e6661e40
commit e5e9692738
1 changed files with 0 additions and 19 deletions

View File

@ -21,20 +21,17 @@ from sqlalchemy.sql import table, column
COLUMNS = [ ('ps_aors', 'authenticate_qualify'),
('ps_aors', 'remove_existing'),
('ps_aors', 'remove_unavailable'),
('ps_aors', 'support_path'),
('ps_asterisk_publications', 'device_state'),
('ps_asterisk_publications', 'mailbox_state'),
('ps_contacts', 'authenticate_qualify'),
('ps_contacts', 'prune_on_boot'),
('ps_endpoint_id_ips', 'srv_lookups'),
('ps_endpoints', '100rel'),
('ps_endpoints', 'accept_multiple_sdp_answers'),
('ps_endpoints', 'aggregate_mwi'),
('ps_endpoints', 'allow_overlap'),
('ps_endpoints', 'allow_subscribe'),
('ps_endpoints', 'allow_transfer'),
('ps_endpoints', 'allow_unauthenticated_options'),
('ps_endpoints', 'asymmetric_rtp_codec'),
('ps_endpoints', 'bind_rtp_to_media_address'),
('ps_endpoints', 'bundle'),
@ -47,12 +44,10 @@ COLUMNS = [ ('ps_aors', 'authenticate_qualify'),
('ps_endpoints', 'force_rport'),
('ps_endpoints', 'g726_non_standard'),
('ps_endpoints', 'ice_support'),
('ps_endpoints', 'ignore_183_without_sdp'),
('ps_endpoints', 'inband_progress'),
('ps_endpoints', 'media_encryption_optimistic'),
('ps_endpoints', 'media_use_received_transport'),
('ps_endpoints', 'moh_passthrough'),
('ps_endpoints', 'mwi_subscribe_replaces_unsolicited'),
('ps_endpoints', 'notify_early_inuse_ringing'),
('ps_endpoints', 'one_touch_recording'),
('ps_endpoints', 'preferred_codec_only'),
@ -62,45 +57,31 @@ COLUMNS = [ ('ps_aors', 'authenticate_qualify'),
('ps_endpoints', 'rtcp_mux'),
('ps_endpoints', 'rtp_ipv6'),
('ps_endpoints', 'rtp_symmetric'),
('ps_endpoints', 'send_aoc'),
('ps_endpoints', 'send_connected_line'),
('ps_endpoints', 'send_diversion'),
('ps_endpoints', 'send_history_info'),
('ps_endpoints', 'send_pai'),
('ps_endpoints', 'send_rpid'),
('ps_endpoints', 'srtp_tag_32'),
('ps_endpoints', 'stir_shaken'),
('ps_endpoints', 'suppress_q850_reason_headers'),
('ps_endpoints', 't38_bind_udptl_to_media_address'),
('ps_endpoints', 't38_udptl'),
('ps_endpoints', 't38_udptl_ipv6'),
('ps_endpoints', 't38_udptl_nat'),
('ps_endpoints', 'timers'),
('ps_endpoints', 'trust_connected_line'),
('ps_endpoints', 'trust_id_inbound'),
('ps_endpoints', 'trust_id_outbound'),
('ps_endpoints', 'use_avpf'),
('ps_endpoints', 'use_ptime'),
('ps_endpoints', 'user_eq_phone'),
('ps_endpoints', 'webrtc'),
('ps_globals', 'all_codecs_on_empty_reinvite'),
('ps_globals', 'allow_sending_180_after_183'),
('ps_globals', 'disable_multi_domain'),
('ps_globals', 'ignore_uri_user_options'),
('ps_globals', 'mwi_disable_initial_unsolicited'),
('ps_globals', 'norefersub'),
('ps_globals', 'send_contact_status_on_update_registration'),
('ps_globals', 'use_callerid_contact'),
('ps_outbound_publishes', 'multi_user'),
('ps_registrations', 'auth_rejection_permanent'),
('ps_registrations', 'line'),
('ps_registrations', 'support_path'),
('ps_resource_list', 'full_state'),
('ps_resource_list', 'resource_display_name'),
('ps_subscription_persistence', 'prune_on_boot'),
('ps_systems', 'accept_multiple_sdp_answers'),
('ps_systems', 'compact_headers'),
('ps_systems', 'disable_rport'),
('ps_systems', 'disable_tcp_switch'),
('ps_systems', 'follow_early_media_fork'),
('ps_transports', 'allow_reload'),