Skip to content

Conversation

@medtaher123
Copy link
Contributor

Motivation

This PR introduces the migration necessary to support the changes made in [Previous PR #745 ]. The previous PR modified the mid field in the Message schema from a string to an array of strings to handle cases where multiple message IDs need to be linked to a single logical message (e.g., Slack messages requiring multiple separate messages for attachments and quick replies).

Dependency:

This PR depends on [Previous PR #745 ], and it should not be merged before that PR is merged.

Migration Details:

  • Up Migration: Converts existing mid fields (currently strings) into arrays containing the original value.

  • Down Migration: Reverts the change by extracting the first element from the array and setting it back as a string.

🚨 Note:

The migration version (present in the migration name) is arbitrary and must be corrected before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant