Chatwoot/db/migrate
Sojan Jose 615a575bdd
fix: Agent typing indicator for website widget (#4495)
When we migrated the pubsub tokens from contact to contact inboxes, we missed out on doing this update for the typing indicator events. Hence the agent typing events weren't visible on the widget side. This change fixes that and removes the necessary column contact pubsub token from the model.

fixes: #4476
2022-04-18 19:05:45 +05:30
..
20200225162150_init_schema.rb Chore: Squash previous migrations (#1107) 2020-09-07 15:19:41 +05:30
20200309170810_create_access_tokens.rb Feature: Access tokens for API access (#604) 2020-03-11 00:02:15 +05:30
20200309213132_add_account_id_to_agent_bot_inboxes.rb Feature: Access tokens for API access (#604) 2020-03-11 00:02:15 +05:30
20200310062527_create_events.rb Enhancement: Move reporting metrics to postgres (#606) 2020-03-18 16:53:35 +05:30
20200310070540_add_index_to_event.rb Enhancement: Move reporting metrics to postgres (#606) 2020-03-18 16:53:35 +05:30
20200311083854_add_index_to_message.rb Enhancement: Move reporting metrics to postgres (#606) 2020-03-18 16:53:35 +05:30
20200325210612_add_locale_to_account.rb Feature: API for updating account settings (#645) 2020-03-29 12:16:31 +05:30
20200330071706_create_channel_twilio_sms.rb Feature: Twilio SMS Channel (#658) 2020-04-05 22:11:27 +05:30
20200330115622_create_action_mailbox_tables.action_mailbox.rb Feature: Conversation Continuity with Email (#770) 2020-04-30 20:20:26 +05:30
20200331095710_add_identifier_to_contact.rb Feature: Website SDK (#653) 2020-04-03 13:04:58 +05:30
20200404092329_add_conversation_uuid.rb Feature: Conversation Continuity with Email (#770) 2020-04-30 20:20:26 +05:30
20200404135009_add_unique_validation_index.rb Feature: Twilio SMS Channel (#658) 2020-04-05 22:11:27 +05:30
20200410145519_devise_create_super_admins.rb Feature: Introduce Super Admins (#705) 2020-05-11 23:07:22 +05:30
20200411125638_add_domain_to_accounts.rb Feature: Conversation Continuity with Email (#770) 2020-04-30 20:20:26 +05:30
20200417093432_remove_name_from_channels.rb Chore: Web widget Inbox Tech Debts (#738) 2020-04-19 23:40:28 +05:30
20200418124534_add_sender_to_messages.rb chore: Upgrade rails and ruby versions (#2400) 2021-08-03 20:11:52 +05:30
20200422130153_create_notifications.rb Chore: Fix data migration in notification settings (#797) 2020-05-01 22:30:57 +05:30
20200429082655_add_medium_to_twilio_sms.rb Feature: Twilio Whatsapp Integration (#779) 2020-04-30 01:41:13 +05:30
20200430163438_create_integrations_hooks.rb Feature: Slack integration (#783) 2020-06-12 23:12:47 +05:30
20200503151130_add_account_feature_flag.rb Feature: Feature flags on account (#814) (#815) 2020-05-04 23:06:42 +05:30
20200504144712_add_index_on_notification_subscriptions.rb Feature: Add web push notification permission in frontend (#766) 2020-05-06 00:10:56 +05:30
20200509044639_add_hide_input_flag_to_bot_config.rb Feature: Customise widget for bot conversations (#834) 2020-05-09 22:02:43 +05:30
20200510112339_create_installation_config.rb Feature: Installation global config (#839) (#840) 2020-05-10 22:40:36 +05:30
20200510154151_add_reference_id_to_conversation.rb Feature: Slack integration (#783) 2020-06-12 23:12:47 +05:30
20200520125815_add_active_at_to_account_users.rb Feature: Ability to switch between multiple accounts (#881) 2020-05-26 22:38:48 +05:30
20200522115645_reload_config.rb Enhancement: Threaded email replies for a conversation (#885) (#886) 2020-05-22 18:14:18 +05:30
20200605130625_agent_away_message_to_auto_reply.rb Feature: Inbox greeting message (#927) 2020-06-09 23:54:35 +05:30
20200606132552_create_labels.rb Feature: Label APIs (#931) 2020-06-07 11:17:13 +05:30
20200607140737_remove_subscriptions.rb Chore: Remove dead code related to billing (#935) 2020-06-07 20:31:48 +05:30
20200610143132_rename_reference_id.rb Feature: Slack integration (#783) 2020-06-12 23:12:47 +05:30
20200625124400_migrate_and_add_unique_index_to_labels.rb Feature: Improve label experience (#975) 2020-06-25 21:04:03 +05:30
20200625154254_add_default_value_to_color.rb Chore: Add default value for label color (#981) 2020-06-25 21:33:56 +05:30
20200627115105_create_api_channel.rb Feature: API Channel (#1052) 2020-07-21 12:15:24 +05:30
20200629122646_add_availability_to_user.rb Feature: Availability Statuses (#874) 2020-07-04 11:42:47 +05:30
20200704135408_create_kbase_portals.rb Feature: Knowledge Base APIs (#1002) 2020-09-26 02:32:34 +05:30
20200704135810_create_kbase_categories.rb Feature: Knowledge Base APIs (#1002) 2020-09-26 02:32:34 +05:30
20200704140029_create_kbase_folders.rb Feature: Knowledge Base APIs (#1002) 2020-09-26 02:32:34 +05:30
20200704140509_create_kbase_articles.rb Feature: Knowledge Base APIs (#1002) 2020-09-26 02:32:34 +05:30
20200704173104_add_twitter_feature_flag.rb Chore: Feature Flags for Channels (#1010) 2020-07-06 11:16:19 +05:30
20200709145000_remove_multiple_feature_flags.rb Chore: Feature lock email settings in UI (#1065) 2020-07-19 23:08:07 +05:30
20200715124113_create_email_channel.rb Feature: API Channel (#1052) 2020-07-21 12:15:24 +05:30
20200719171437_rename_nick_name_to_display_name.rb Chore: Add display name to the user (#1067) 2020-07-20 18:28:14 +05:30
20200725131651_create_email_templates.rb feat: Customisable Email Templates (#1095) 2020-08-06 15:21:06 +05:30
20200730080242_add_feature_setting_to_website_inbox.rb feat: Disable attachments and emoji picker in the web widget (#1102) 2020-08-05 17:46:17 +05:30
20200802170002_reset_agent_last_seen_at.rb Bugfix: Use server timestamp to set agent_last_seen_at (#1114) 2020-08-03 13:40:20 +05:30
20200819190629_add_custom_attributes_to_contacts.rb feat: Custom Attributes for contacts (#1158) 2020-08-21 19:30:27 +05:30
20200828175931_add_external_source_ids_to_messages.rb feat: Enable Slack Integration in all channels (#1175) 2020-08-29 01:39:41 +05:30
20200907094912_rename_user_last_seen.rb feat: Notification on new messages in conversation (#1204) 2020-09-10 19:19:15 +05:30
20200907171106_add_reply_time_to_web_widget.rb feat: Display reply time in widget (#1349) 2020-10-18 23:32:22 +05:30
20200927135222_add_last_activity_at_to_conversation.rb fix: Use last_activity_at instead of updated_at for sorting (#1281) 2020-10-05 22:52:43 +05:30
20201003105618_add_auto_resolve_duration_to_account.rb feat: Auto resolve conversations after n days of inactivity (#1308) 2020-11-01 12:53:25 +05:30
20201011152227_add_email_address_to_inbox.rb feat: Allow custom email address for inbox (#1336) 2020-10-11 23:24:11 +05:30
20201019173944_add_default_value_to_jsonb_colums.rb feat: IP lookup (#1315) 2020-10-28 02:14:36 +05:30
20201027135006_create_working_hours.rb feat: Business hours 2020-11-01 00:14:33 +05:30
20201123195011_create_platform_apps.rb feat: Add Platform APIs (#1456) 2021-01-14 20:35:22 +05:30
20201124101124_create_platform_app_permissibles.rb feat: Add Platform APIs (#1456) 2021-01-14 20:35:22 +05:30
20201125121240_create_triggers_accounts_insert_or_conversations_insert.rb chore: Automate conversation display_id generation with db triggers (#1412) 2021-01-05 20:07:04 +05:30
20201125123131_conv_dpid_seq_for_existing_accnts.rb chore: Automate conversation display_id generation with db triggers (#1412) 2021-01-05 20:07:04 +05:30
20210105185632_enable_pg_stats_extention.rb chore: Sync the schema and migrations (#1610) 2021-01-06 11:36:45 +05:30
20210109211805_add_ui_settings_to_users.rb feat: Save UI state in the database (#1635) 2021-01-10 19:25:33 +05:30
20210112174124_add_hmac_token_to_inbox.rb feat: HMAC verification for web widget (#1643) 2021-01-17 22:44:03 +05:30
20210113045116_add_locked_attribute_to_installation_config.rb feat: installation config in super admin console (#1641) 2021-01-15 13:21:53 +05:30
20210114202310_create_teams.rb feat: Team APIs (#1654) 2021-01-17 23:56:56 +05:30
20210126121313_addunique_index_to_team_members.rb feat: Bulk add team members in Team APIs (#1695) 2021-01-29 12:34:52 +05:30
20210201150037_create_data_imports.rb feat: Add bulk imports API for contacts (#1724) 2021-02-03 19:24:51 +05:30
20210212154240_add_request_for_email_on_channel_web_widget.rb feat: Add a pre-chat form on widget (#1769) 2021-02-16 00:14:13 +05:30
20210217154129_remove_orphan_inbox_members_from_inboxes.rb fix: Remove orphan members from inbox (#1797) 2021-02-18 15:56:54 +05:30
20210219085719_remove_old_notifications.rb chore: Fix issues with notification actors (#1807) 2021-02-19 18:35:21 +05:30
20210222131048_change_working_hours_to_zero.rb feat: Business hour Inbox APIs (#1821) 2021-02-23 12:11:15 +05:30
20210222131155_switch_time_zone_from_account_to_inbox.rb feat: Business hour Inbox APIs (#1821) 2021-02-23 12:11:15 +05:30
20210303192243_rename_channel_email_forward_address.rb chore: Enable email channel (#1851) 2021-03-04 13:59:59 +05:30
20210306170117_add_last_activity_at_to_contacts.rb feat: Sort contacts via name, email, phone_number, last_activity_at (#1870) 2021-05-13 13:32:19 +05:30
20210315101919_enable_email_channel.rb Chore: Migration to enable email channel (#1913) 2021-03-15 19:15:48 +05:30
20210425093724_convert_integration_hook_settings_field.rb feat: Add APIs for Dialogflow integration V1 (#2155) 2021-05-05 21:06:11 +05:30
20210426191914_migration_remove_locked_from_conversation.rb chore: Add event for conversations transferred to Bot (#2167) 2021-04-28 20:53:23 +05:30
20210428135041_add_campaigns.rb fix: Rename migration for Campaigns (#2232) 2021-05-07 00:56:32 +05:30
20210428151147_create_triggers_accounts_insert_or_campaigns_insert.rb feat: Add APIs for Campaigns (#2175) 2021-04-29 22:23:32 +05:30
20210430095748_add_camp_dp_id_seq_for_existing_accounts.rb chore: Campaign ID migration for existing accounts (#2189) 2021-04-30 06:15:24 -07:00
20210430100138_rename_campaign_content_to_message.rb chore: Campaign ID migration for existing accounts (#2189) 2021-04-30 06:15:24 -07:00
20210513083044_remove_not_null_from_webhook_url_channel_api.rb feat: Remove restrictions on API channel webhook_url (#2261) 2021-05-13 15:03:25 +05:30
20210513143021_rename_events_to_report_events.rb Chore: clean up Reporting Events (#4044) 2022-02-28 18:16:12 +05:30
20210520200729_add_account_id_to_agent_bots.rb feat: Add AgentBot APIs (#2323) 2021-06-01 22:34:25 +05:30
20210527173755_remove_super_admin_access_tokes.rb feat: Improved password security policy (#2345) 2021-06-07 17:26:08 +05:30
20210602182058_add_hmac_to_api_channel.rb feat: Add Public APIs for API Channel (#2375) 2021-06-15 20:09:17 +05:30
20210609133433_add_email_collect_to_inboxes.rb feat: Add an option to enable/disable email collect box (#2399) 2021-06-10 02:34:03 -07:00
20210611180221_add_service_name_to_active_storage_blobs.active_storage.rb chore: Upgrade rails and ruby versions (#2400) 2021-08-03 20:11:52 +05:30
20210611180222_create_active_storage_variant_records.active_storage.rb chore: Upgrade rails and ruby versions (#2400) 2021-08-03 20:11:52 +05:30
20210618073042_create_notes.rb chore: Add contact note model (#2462) 2021-06-21 15:16:26 +05:30
20210618095823_add_csat_toggle_for_inbox.rb chore: Add CSAT survey toggle attribute to Inboxes (#2455) 2021-06-18 15:55:48 +05:30
20210623150613_create_custom_filters.rb feat: Add APIs to create custom views on the dashboard (#2498) 2021-06-29 19:29:57 +05:30
20210623155413_create_csat_survey_responses.rb feat: Add CSAT response APIs (#2503) 2021-06-29 20:59:41 +05:30
20210707142801_add_campaign_type_to_campaigns.rb chore: one off SMS campaign APIs (#2589) 2021-07-14 12:24:09 +05:30
20210708140842_remove_notifications_without_primary_actor.rb chore: Fixes the missing gem warning (#3207) 2021-10-14 13:57:01 +05:30
20210714110714_remove_duplicate_access_tokens_for_existing_users.rb chore: Removing duplicate callback to create auth token (#2624) 2021-07-15 15:24:38 +05:30
20210721182458_add_snoozed_until_to_conversations.rb feat: Ability to snooze conversations (#2682) 2021-07-23 15:24:07 +05:30
20210722095814_add_custom_attribute_definition.rb feat: Add APIs for custom attribute definitions (#2689) 2021-07-23 17:04:33 +05:30
20210723094412_add_index_to_conversations.rb chore: Improve search, list performance of contact/conversation APIs (#2696) 2021-07-23 18:39:24 +05:30
20210723095657_add_index_to_contacts.rb chore: Improve search, list performance of contact/conversation APIs (#2696) 2021-07-23 18:39:24 +05:30
20210824152852_add_description_to_custom_attribute_definition.rb chore: Add description field in custom attribute model (#2872) 2021-08-24 21:17:23 +05:30
20210827120929_add_custom_attributes_to_user.rb feat: Platform API improvements (#2900) 2021-09-02 18:29:45 +05:30
20210828124043_add_telegram_channel.rb feat: Telegram Channel (#2901) 2021-09-10 00:00:52 +05:30
20210829124254_add_line_channel.rb feat: Line Channel (#2904) 2021-09-11 01:31:17 +05:30
20210902181438_add_instagram_id_to_facebook_page.rb feat: Add Instagram Channel (#2955) 2021-10-05 14:35:32 +05:30
20210916060144_add_custom_attributes_to_conversations.rb chore: Conversation custom attribute APIs (#3024) 2021-09-22 10:46:48 +05:30
20210916112533_add_whatsapp_channel.rb chore: Provider API prototype (#3112) 2021-10-05 23:35:06 +05:30
20210922082754_add_assignee_last_seen.rb feat: Add assignee last seen to conversations (#3069) 2021-09-23 20:59:10 +05:30
20210923132659_set_content_type_text_for_the_old_messages.rb fix: set default content type as text for message (#3060) 2021-10-06 00:10:29 +05:30
20210923190418_add_online_status_to_account_users.rb chore: Minor Housekeeping tasks (#3169) 2021-10-08 15:45:45 +05:30
20210927062350_add_trigger_only_during_business_hours_collect_to_campaigns.rb fix: Trigger campaigns only during business hours (#3085) 2021-10-12 17:58:33 +05:30
20211012135050_add_limits_to_accounts.rb chore: Introduce enterprise edition license (#3209) 2021-12-09 12:07:48 +05:30
20211027073553_add_imap_smtp_config_to_channel_email.rb feat: IMAP Email Channel (#3298) 2021-11-19 11:52:27 +05:30
20211109143122_add_tweet_enabled_flag_to_twitter_channel.rb Feat: Manage conversation for tweets based on the tweet flag (#3353) 2021-12-16 00:24:50 +05:30
20211110101046_create_automation_rules.rb feat: Save automation rules (#3359) 2022-01-10 12:41:59 +05:30
20211116131740_add_values_to_custom_attribute_definitions.rb chore: Add the support for list and checkbox in custom attribute model (#3400) 2021-11-16 23:25:19 +05:30
20211118100301_change_values_to_attribute_values_in_custom_attribute_definitions.rb choore: Change values to attribute_values in custom attributes (#3413) 2021-11-18 18:59:28 +05:30
20211122061012_add_pub_sub_token_to_contact_inbox.rb chore: Migrate PubSub Token to contact inbox (#3434) 2021-11-22 23:32:17 +05:30
20211122112607_remove_invalid_migration.rb chore: Update schema files (#3438) 2021-11-23 16:04:01 +05:30
20211129120040_add_templates_to_whatsapp_channel.rb chore: Whatsapp templates fix for 360 dialog (#3479) 2021-11-30 20:50:35 +05:30
20211201224513_create_mentions.rb feat: Add a view for mentions (#3505) 2021-12-09 11:20:14 +05:30
20211207113102_remove_attribute_key_index_on_custom_attribute_definition.rb fix: Index custom attribute uniqueness on account (#3516) 2021-12-07 18:20:47 +05:30
20211208081344_add_attribute_model_index_on_custom_attribute_definition.rb chore: Add the ability to use same key for conversation and contact (#3526) 2021-12-08 20:15:27 +05:30
20211208085931_update_contact_inbox_foreign_key.rb Fix: Add foreign key with delete cascade for destroy_async (#3527) 2021-12-08 18:03:27 +05:30
20211216110209_add_allow_messages_after_resolved_to_inbox.rb feat: Toggle to disallow users to send messages after a conversation is resolved (#3605) 2022-01-11 00:32:03 -08:00
20211219031453_update_foreign_keys_on_delete.rb chore: Clean up migrations (#3613) 2021-12-19 09:47:07 +05:30
20211221125545_add_unique_index_on_inbox_members.rb chore: API improvements (#3637) 2021-12-21 22:48:01 +05:30
20220110090126_add_active_flag_to_automation_rule.rb Feat: Automations Actions (#3564) 2022-01-13 11:21:06 +05:30
20220111200105_update_nil_contact_attributes_to_empty_hash.rb chore: Prevent null in Contact JSONB attributes (#3730) 2022-01-11 15:14:55 -08:00
20220111223630_remove_platform_app_permissible_access_tokens.rb fix: SuperAdmin Improvements (#3733) 2022-01-11 19:00:00 -08:00
20220116103902_add_open_ssl_verify_mode_to_channel_email.rb Add openssl verify mode and email encryption for smtp configuration (#3885) 2022-02-08 03:26:13 -08:00
20220119051739_enable_conversation_continuity.rb feat: Ability to toggle conversation continuity via email (#3817) 2022-01-26 15:59:48 -08:00
20220121055444_add_type_to_users.rb feat: Unify user and super admin credentials (#3830) 2022-01-25 16:58:49 -08:00
20220129024443_add_sms_channel.rb chore: Provider APIs for SMS Channel - Bandwidth (#3889) 2022-02-03 15:22:13 -08:00
20220131081750_add_email_signature_to_user.rb feat: Email signature API support (#3874) 2022-02-02 19:37:33 +05:30
20220207124741_add_direct_uploads_to_installation_config.rb chore: Delayed deploy of direct uploads (#3966) 2022-02-15 16:16:54 +05:30
20220215060751_remove_message_signature_enabled.rb chore: Remove message_signature_enabled from users (#3982) 2022-02-15 12:10:53 +05:30
20220216151613_add_open_all_day_to_working_hour.rb Fix: add option to choose 24 hour working slot (#4018) 2022-02-22 01:28:49 -08:00
20220218120357_add_h_captcha_key.rb feat: Add hCaptcha for public forms (#4017) 2022-02-18 20:02:50 +05:30
20220329131401_add_value_in_business_hours_to_reporting_event.rb feat: Consider business hours while generating the reports (#4330) 2022-04-08 00:18:18 -07:00
20220405092033_update_web_widget_feature_flags.rb feat: Add an option to disable endConversation button (#4352) 2022-04-06 13:54:55 +05:30
20220409044943_rename_imap_email_and_smtp_email_columns.rb fix: Remove IMAP and SMTP email validation (#4435) 2022-04-11 07:07:20 -07:00
20220418094715_remove_contact_pubsub_token.rb fix: Agent typing indicator for website widget (#4495) 2022-04-18 19:05:45 +05:30