iachat/db/migrate
Pranav Raj S 3a547de909
fix: Update the default status of the hooks to enabled (#7652)
In the recent Slack integration update, we made changes to how hooks are handled. Now, hooks require an additional check to be enabled. By default, new hooks are created in a disabled state, which might lead to issues with the hooks not being executed as expected.

This migration updates the status attribute of hooks to have 'enabled' as the default value, ensuring that new hooks are enabled by default and can function properly.
2023-08-01 12:14:47 -07:00
..
20200225162150_init_schema.rb
20200309170810_create_access_tokens.rb
20200309213132_add_account_id_to_agent_bot_inboxes.rb
20200310062527_create_events.rb
20200310070540_add_index_to_event.rb
20200311083854_add_index_to_message.rb
20200325210612_add_locale_to_account.rb
20200330071706_create_channel_twilio_sms.rb
20200330115622_create_action_mailbox_tables.action_mailbox.rb
20200331095710_add_identifier_to_contact.rb
20200404092329_add_conversation_uuid.rb
20200404135009_add_unique_validation_index.rb
20200410145519_devise_create_super_admins.rb
20200411125638_add_domain_to_accounts.rb
20200417093432_remove_name_from_channels.rb chore: Fix connection pool (#6005) 2023-01-16 17:50:23 +05:30
20200418124534_add_sender_to_messages.rb chore: Fix connection pool (#6005) 2023-01-16 17:50:23 +05:30
20200422130153_create_notifications.rb
20200429082655_add_medium_to_twilio_sms.rb
20200430163438_create_integrations_hooks.rb
20200503151130_add_account_feature_flag.rb
20200504144712_add_index_on_notification_subscriptions.rb
20200509044639_add_hide_input_flag_to_bot_config.rb
20200510112339_create_installation_config.rb
20200510154151_add_reference_id_to_conversation.rb
20200520125815_add_active_at_to_account_users.rb
20200522115645_reload_config.rb
20200605130625_agent_away_message_to_auto_reply.rb chore: Fix connection pool (#6005) 2023-01-16 17:50:23 +05:30
20200606132552_create_labels.rb
20200607140737_remove_subscriptions.rb
20200610143132_rename_reference_id.rb
20200625124400_migrate_and_add_unique_index_to_labels.rb
20200625154254_add_default_value_to_color.rb
20200627115105_create_api_channel.rb
20200629122646_add_availability_to_user.rb
20200704135408_create_kbase_portals.rb
20200704135810_create_kbase_categories.rb
20200704140029_create_kbase_folders.rb
20200704140509_create_kbase_articles.rb
20200704173104_add_twitter_feature_flag.rb
20200709145000_remove_multiple_feature_flags.rb
20200715124113_create_email_channel.rb
20200719171437_rename_nick_name_to_display_name.rb
20200725131651_create_email_templates.rb
20200730080242_add_feature_setting_to_website_inbox.rb
20200802170002_reset_agent_last_seen_at.rb
20200819190629_add_custom_attributes_to_contacts.rb
20200828175931_add_external_source_ids_to_messages.rb
20200907094912_rename_user_last_seen.rb
20200907171106_add_reply_time_to_web_widget.rb
20200927135222_add_last_activity_at_to_conversation.rb
20201003105618_add_auto_resolve_duration_to_account.rb
20201011152227_add_email_address_to_inbox.rb
20201019173944_add_default_value_to_jsonb_colums.rb
20201027135006_create_working_hours.rb
20201123195011_create_platform_apps.rb
20201124101124_create_platform_app_permissibles.rb
20201125121240_create_triggers_accounts_insert_or_conversations_insert.rb
20201125123131_conv_dpid_seq_for_existing_accnts.rb
20210105185632_enable_pg_stats_extention.rb
20210109211805_add_ui_settings_to_users.rb
20210112174124_add_hmac_token_to_inbox.rb
20210113045116_add_locked_attribute_to_installation_config.rb
20210114202310_create_teams.rb
20210126121313_addunique_index_to_team_members.rb
20210201150037_create_data_imports.rb
20210212154240_add_request_for_email_on_channel_web_widget.rb
20210217154129_remove_orphan_inbox_members_from_inboxes.rb
20210219085719_remove_old_notifications.rb
20210222131048_change_working_hours_to_zero.rb
20210222131155_switch_time_zone_from_account_to_inbox.rb
20210303192243_rename_channel_email_forward_address.rb
20210306170117_add_last_activity_at_to_contacts.rb
20210315101919_enable_email_channel.rb
20210425093724_convert_integration_hook_settings_field.rb
20210426191914_migration_remove_locked_from_conversation.rb
20210428135041_add_campaigns.rb
20210428151147_create_triggers_accounts_insert_or_campaigns_insert.rb
20210430095748_add_camp_dp_id_seq_for_existing_accounts.rb
20210430100138_rename_campaign_content_to_message.rb
20210513083044_remove_not_null_from_webhook_url_channel_api.rb
20210513143021_rename_events_to_report_events.rb
20210520200729_add_account_id_to_agent_bots.rb
20210527173755_remove_super_admin_access_tokes.rb
20210602182058_add_hmac_to_api_channel.rb
20210609133433_add_email_collect_to_inboxes.rb
20210611180221_add_service_name_to_active_storage_blobs.active_storage.rb
20210611180222_create_active_storage_variant_records.active_storage.rb
20210618073042_create_notes.rb
20210618095823_add_csat_toggle_for_inbox.rb
20210623150613_create_custom_filters.rb
20210623155413_create_csat_survey_responses.rb
20210707142801_add_campaign_type_to_campaigns.rb
20210708140842_remove_notifications_without_primary_actor.rb
20210714110714_remove_duplicate_access_tokens_for_existing_users.rb
20210721182458_add_snoozed_until_to_conversations.rb
20210722095814_add_custom_attribute_definition.rb
20210723094412_add_index_to_conversations.rb
20210723095657_add_index_to_contacts.rb
20210824152852_add_description_to_custom_attribute_definition.rb
20210827120929_add_custom_attributes_to_user.rb
20210828124043_add_telegram_channel.rb
20210829124254_add_line_channel.rb
20210902181438_add_instagram_id_to_facebook_page.rb
20210916060144_add_custom_attributes_to_conversations.rb
20210916112533_add_whatsapp_channel.rb
20210922082754_add_assignee_last_seen.rb
20210923132659_set_content_type_text_for_the_old_messages.rb
20210923190418_add_online_status_to_account_users.rb
20210927062350_add_trigger_only_during_business_hours_collect_to_campaigns.rb
20211012135050_add_limits_to_accounts.rb
20211027073553_add_imap_smtp_config_to_channel_email.rb
20211109143122_add_tweet_enabled_flag_to_twitter_channel.rb
20211110101046_create_automation_rules.rb
20211116131740_add_values_to_custom_attribute_definitions.rb
20211118100301_change_values_to_attribute_values_in_custom_attribute_definitions.rb
20211122061012_add_pub_sub_token_to_contact_inbox.rb
20211122112607_remove_invalid_migration.rb
20211129120040_add_templates_to_whatsapp_channel.rb
20211201224513_create_mentions.rb
20211207113102_remove_attribute_key_index_on_custom_attribute_definition.rb
20211208081344_add_attribute_model_index_on_custom_attribute_definition.rb
20211208085931_update_contact_inbox_foreign_key.rb
20211216110209_add_allow_messages_after_resolved_to_inbox.rb
20211219031453_update_foreign_keys_on_delete.rb
20211221125545_add_unique_index_on_inbox_members.rb
20220110090126_add_active_flag_to_automation_rule.rb
20220111200105_update_nil_contact_attributes_to_empty_hash.rb
20220111223630_remove_platform_app_permissible_access_tokens.rb
20220116103902_add_open_ssl_verify_mode_to_channel_email.rb
20220119051739_enable_conversation_continuity.rb
20220121055444_add_type_to_users.rb
20220129024443_add_sms_channel.rb
20220131081750_add_email_signature_to_user.rb
20220207124741_add_direct_uploads_to_installation_config.rb
20220215060751_remove_message_signature_enabled.rb
20220216151613_add_open_all_day_to_working_hour.rb
20220218120357_add_h_captcha_key.rb
20220315204137_add_account_sid_unique_index_to_channel_twilio_sms.rb
20220316054933_add_custom_fields_to_pre_chat_form.rb
20220317171031_add_messaging_service_sid_to_channel_twilio_sms.rb
20220329131401_add_value_in_business_hours_to_reporting_event.rb
20220405092033_update_web_widget_feature_flags.rb
20220409044943_rename_imap_email_and_smtp_email_columns.rb
20220416203340_add_config_to_portal.rb
20220416205519_add_locale_to_kbase_category.rb
20220418094715_remove_contact_pubsub_token.rb
20220424081117_add_subscriptions_to_webhooks.rb
20220428101325_add_index_to_conversation_and_reporting_event.rb
20220506061540_change_kbase_portals_to_portals.rb
20220506064938_create_portals_members_join_table.rb
20220506072007_change_kbase_categories_to_categories.rb
20220506080338_change_kbase_folders_to_folders.rb
20220506080429_change_kbase_articles_to_articles.rb
20220506163839_add_additional_attributes_to_message.rb
20220511072655_add_archive_column_to_portal.rb
20220513145010_add_first_reply_activity_at_to_conversation.rb
20220525141844_create_dashboard_apps.rb
20220527040433_add_auto_assignment_configuration_to_inboxes.rb
20220527080906_add_reference_for_author_id.rb
20220527120826_add_index_on_category_slug_and_locale.rb
20220608084622_add_associated_article_id.rb
20220610091206_add_additional_attributes_to_api_channel.rb
20220616154502_remove_special_characters_from_inbox_name.rb
20220622090344_add_type_to_agent_bots.rb
20220623113405_add_parent_id_to_category.rb
20220623113604_create_related_categories.rb
20220627135753_add_linked_category_id_to_categories.rb
20220628124837_create_portal_members.rb
20220706085458_rename_linked_category_column_name.rb
20220711090528_create_macros.rb
20220712145440_sync_gravatar_for_existing_avatarables.rb
20220718123938_add_custom_attributes_to_account.rb
20220720080126_add_meta_column_to_article.rb
20220720123615_set_default_locale_at_accounts.rb
20220802133722_add_status_to_accounts.rb
20220802193353_add_conversation_uuid_unique_index.rb
20220808193420_add_conversation_participants.rb chore: Add controllers for conversation participants (#6462) 2023-02-15 16:33:31 -08:00
20220809104508_revert_cascading_indexes.rb
20220919225556_make_help_center_custom_domain_unique.rb
20220920014549_enable_help_center.rb
20220926164441_add_slug_to_article.rb
20220930025317_add_unique_index_to_slug.rb
20221010212946_add_index_to_message_attachments.rb
20221017201914_add_features_to_accounts.rb
20221029202300_add_two_features_to_accounts.rb chore: Add feature flags for campaigns and website channel (#5778) 2022-12-14 16:06:26 -08:00
20221102082737_change_macros_created_by_to_null.rb
20221109065043_add_lock_conversation_to_single_thread.rb
20221116000514_enable_macros_for_all_accounts.rb
20221219162759_enabled_new_features.rb chore: Cleanup feature flags (#6096) 2022-12-19 22:38:30 +05:30
20221230113108_add_ms_oauth_token_to_channel.rb Feat: Support for Microsoft Oauth in Email Channel (#6227) 2023-01-17 02:39:05 +05:30
20230118155353_add_unique_index_to_conversation_participants.rb chore: Add controllers for conversation participants (#6462) 2023-02-15 16:33:31 -08:00
20230202132107_install_audited.rb chore: Enable the new Rubocop rules (#7122) 2023-05-19 14:37:10 +05:30
20230209033203_update_default_on_subscriptions_webhooks.rb feat: Add webhook events for contact created, updated (#6415) 2023-02-13 13:28:27 -08:00
20230214025901_update_reporting_events_with_incorrect_first_responses.rb fix: migration script to run on all reporting events (#6590) 2023-03-02 19:03:31 +05:30
20230224124632_add_index_for_search_operations.rb feat: New APIs for search (#6564) 2023-02-28 22:00:36 +05:30
20230302054408_update_reporting_events_first_response_time.rb fix: migration script to run on all reporting events (#6590) 2023-03-02 19:03:31 +05:30
20230306100327_add_trgm_index_to_tag_name.rb feat: add trigram index to tags (#6615) 2023-03-08 18:11:07 +05:30
20230313113920_add_position_to_articles.rb feat: Backend changes for article and categories ordering (#6655) 2023-03-13 17:39:07 +05:30
20230315105847_add_indexes_for_common_queries.rb chore: Additional indexes and fixes (#6675) 2023-03-15 19:52:02 +05:30
20230321073727_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb chore: Upgrade to Rails 7 (#6719) 2023-05-06 10:44:52 +05:30
20230327081350_add_index_to_conversations_account_id_and_id.rb feat: add index to conversation id and account_id (#6757) 2023-03-28 22:34:04 +05:30
20230328131926_drop_extra_audit_integer_column.rb chore: Remove extra audit column (#6769) 2023-03-29 12:24:14 +05:30
20230404030719_remove_settings_flags_from_account.rb chore: Use feature_flags attribute instead of settings_flags (#6820) 2023-04-04 09:56:58 -07:00
20230405104405_update_position_for_articles.rb feat: allow sorting of articles (#6833) 2023-04-17 14:43:10 +05:30
20230407191457_migrate_env_var_to_channel_feature.rb feat: Use inbox image as avatar for the bot (#6859) 2023-04-07 13:25:18 -07:00
20230413085302_add_portal_id_to_inbox.rb feat: Link help center portal to an Inbox (#6903) 2023-04-24 12:49:52 +05:30
20230418100944_add_priority_to_conversation.rb feat: add priority field to conversation (#6921) (#6927) 2023-04-19 13:23:14 +05:30
20230426130150_add_index_for_widget_contact_look_up.rb chore: Add Index for widget contact lookup (#6998) 2023-04-26 19:22:16 +05:30
20230503101201_create_sla_policies.rb feat: SLA CRUD APIs (EE) (#7027) 2023-05-11 22:42:56 +05:30
20230509101256_add_index_to_messages_created_at.rb feat(perf): add index to messages created at (#7044) 2023-05-10 11:34:49 +05:30
20230510060828_add_index_to_messages_for_reportings.rb feat: add index migration (#7050) 2023-05-10 17:55:14 +05:30
20230510113208_set_default_empty_string_for_contact_name.rb chore: Add migration to set the default empty string value for contact name (#7052) 2023-05-11 17:35:19 +05:30
20230515051424_update_article_image_keys.rb feat: add migration to fix image signed keys (#7076) 2023-05-15 15:13:26 +05:30
20230523104139_add_partial_index_for_resolved_contacts.rb feat(perf): contacts query performance (#7175) 2023-05-23 17:22:47 +05:30
20230525085402_add_custom_sender_name_toggle.rb feat: Ability to customise the email sender name [CW-1629] (#7345) 2023-07-04 20:46:01 +05:30
20230608040738_add_processed_message_content_to_messages.rb fix: Automations condition based quoted text (#7272) 2023-06-09 17:00:05 +05:30
20230612103936_add_index_to_reporting_events.rb feat: add index to reporting events [CW-1960] (#7294) 2023-06-12 18:23:42 +05:30
20230614044633_add_sender_name_to_in.rb feat: Ability to customise the email sender name [CW-1629] (#7345) 2023-07-04 20:46:01 +05:30
20230620132319_add_sla_policy_to_conversations.rb chore: Add sla policy association to conversation (#7360) 2023-06-21 14:48:50 +05:30
20230620212340_add_waiting_since_to_conversations.rb feat: Add a sort option for conversations waiting for a reply from an agent (#7364) 2023-06-21 13:20:39 -07:00
20230706090122_sentiment_column_to_messages.rb feat: Sentiment Analysis (#7475) 2023-07-12 15:03:31 +05:30
20230714054138_add_api_key_sid_to_twilio_sms.rb feat: Add support for API key authentication in Twilio (#7523) 2023-07-14 19:20:54 -07:00
20230727065605_add_partial_index_contact_account_id.rb feat(perf): contact page loading speed (#7629) 2023-07-27 13:32:22 +05:30
20230801180936_update_default_status_in_hooks.rb fix: Update the default status of the hooks to enabled (#7652) 2023-08-01 12:14:47 -07:00