Skip to content

feat: Add cleanup script for MongoDB configurations and versions#646

Open
Husainbw786 wants to merge 1 commit intotestingfrom
migration_to_delete_extra_keys_dev
Open

feat: Add cleanup script for MongoDB configurations and versions#646
Husainbw786 wants to merge 1 commit intotestingfrom
migration_to_delete_extra_keys_dev

Conversation

@Husainbw786
Copy link
Collaborator

  • Introduced a new script cleanup_configurations.js to remove specified keys from the 'configurations' and 'configuration_versions' collections in MongoDB.
  • Implemented a function to connect to the database, process documents, and log the cleanup results.
  • Enhanced data integrity by ensuring unnecessary fields are removed while retaining essential information.

This script aims to streamline the database by cleaning up outdated or irrelevant fields.

- Introduced a new script `cleanup_configurations.js` to remove specified keys from the 'configurations' and 'configuration_versions' collections in MongoDB.
- Implemented a function to connect to the database, process documents, and log the cleanup results.
- Enhanced data integrity by ensuring unnecessary fields are removed while retaining essential information.

This script aims to streamline the database by cleaning up outdated or irrelevant fields.
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