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

Fix wrong standard id for objectMetadataId in auditLog #6180

Conversation

Weiko
Copy link
Member

@Weiko Weiko commented Jul 9, 2024

Add a new command to delete objectMetadataId fieldMetadata that have a wrong standard-id. This is because we have fixed the missing objectMetadataId column but one already exists in the fieldMetadataId with the wrong table. We should run this command before run the sync-metadata.

Introduced a new module and command to run all the command associated with the upgrade to 0.22. Not exactly sure with this structure but ideally we would like to have only 1 command for version upgrades so this is a first step.

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 UpgradeTo0_22CommandModule in packages/twenty-server/src/database/commands/database-command.module.ts
  • Introduced FixObjectMetadataIdStandardIdCommand in packages/twenty-server/src/database/commands/upgrade-version/0-22/0-22-fix-object-metadata-id-standard-id.command.ts
  • Renamed and reorganized 0-22-update-boolean-fields-null-default-values-and-null-values.command.ts
  • Added UpgradeTo0_22Command in packages/twenty-server/src/database/commands/upgrade-version/0-22/0-22-upgrade-version.command.ts
  • Introduced UpgradeTo0_22CommandModule in packages/twenty-server/src/database/commands/upgrade-version/0-22/0-22-upgrade-version.module.ts

5 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@charlesBochet charlesBochet merged commit 881613e into main Jul 9, 2024
6 checks passed
@charlesBochet charlesBochet deleted the c--remove-wrong-standard-id-for-object-metadata-id-audit-log branch July 9, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants