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

Add new enum options to messageChannel syncStatus #5694

Merged
merged 1 commit into from
May 31, 2024

Conversation

charlesBochet
Copy link
Member

As per title!
This command will enable smooth migrations between 0.12 and 0.20

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

  • Added UpdateMessageChannelSyncStatusEnumCommand for messageChannel entities
  • Modified database-command.module.ts to include the new command
  • Included necessary TypeORM imports for Workspace, FieldMetadataEntity, and ObjectMetadataEntity

Comment on lines +93 to +95
await queryRunner.query(
`ALTER TYPE "${dataSourceMetadata.schema}"."messageChannel_syncStatus_enum" RENAME TO "messageChannel_syncStatus_enum_old"`,
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a check to see if the enum type already exists before renaming it to avoid potential conflicts.

@charlesBochet charlesBochet merged commit 99dff43 into main May 31, 2024
6 checks passed
@charlesBochet charlesBochet deleted the script-migration-enum branch May 31, 2024 16:02
arnavsaxena17 pushed a commit to arnavsaxena17/twenty that referenced this pull request Oct 6, 2024
As per title!
This command will enable smooth migrations between 0.12 and 0.20
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