Skip to content

Adding migration for added comment field#756

Open
derrickpersson wants to merge 1 commit into
developmentfrom
derrickp/dev-281-verify-comments-against-historical-comments
Open

Adding migration for added comment field#756
derrickpersson wants to merge 1 commit into
developmentfrom
derrickp/dev-281-verify-comments-against-historical-comments

Conversation

@derrickpersson
Copy link
Copy Markdown
Contributor

@derrickpersson derrickpersson commented Nov 8, 2024

Description

Summary

This pull request introduces a new boolean column 'hasMadeChanges' to the comment entity in the code base and adds a corresponding migration file to update the database schema. This addition is intended to track modifications made to comments, with the default value set to false. These changes ensure that any alterations to comments can be accurately monitored and identified.

1ccf51c...f535f72

Changes

File Summary

File Changes:

  • comment.entity.ts: Added a new boolean column 'hasMadeChanges' with default value as false to track comment modifications.

New Files:

  • 1731100863234-addingFieldToTrackChangesMadeAfterComments.ts: A new migration file was added to track changes in comments by adding a 'has_made_changes' boolean field to the 'comment' table.

1ccf51c...f535f72

Type of Change

  • Tech Debt (refactoring, unit tests, CI changes, pre-commit hooks, etc)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

Checklist

  • I have manually tested my code and all critical paths it effects
  • I have added tests for my code
  • I have performed a self-review of my code
  • I have used comments to provide context, particularly in hard-to-understand areas
  • Any dependent changes have been made available in downstream modules

@linear
Copy link
Copy Markdown

linear Bot commented Nov 8, 2024

Copy link
Copy Markdown

@squireai-staging squireai-staging Bot left a comment

Choose a reason for hiding this comment

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

Pull request summary created by Squire AI

Summary

This pull request introduces a new boolean column 'hasMadeChanges' to the Comment entity in the codebase, with a default value of false. To support this change, a corresponding database migration has been created to add the 'has_made_changes' field to the 'comment' table. The intent behind these changes is to track whether any modifications have been made to comments after their initial creation.

1ccf51c...f535f72

File Summary

File Changes:

  • comment.entity.ts: Added a new column 'hasMadeChanges' of type boolean with a default value of false to the Comment entity.

New Files:

  • 1731100863234-addingFieldToTrackChangesMadeAfterComments.ts: Added a migration to the database to include a new boolean field 'has_made_changes' in the 'comment' table, with a default value of false.

1ccf51c...f535f72

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