Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add migration for message mid to array #751

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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