Skip to content

Fix rollback migration#210

Merged
UlisesGascon merged 2 commits intoOpenPathfinder:mainfrom
bjohansebas:fix-migration
Mar 11, 2025
Merged

Fix rollback migration#210
UlisesGascon merged 2 commits intoOpenPathfinder:mainfrom
bjohansebas:fix-migration

Conversation

@bjohansebas
Copy link
Contributor

closes #209

table.integer('compliance_check_id')
.unsigned()
.notNullable()
.references('id').inTable('compliance_checks')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It makes sense for it to be cascade, right? If the record is deleted, we want it to be removed from these tables as well.

Copy link
Member

@UlisesGascon UlisesGascon left a comment

Choose a reason for hiding this comment

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

LGTM! Great catch and thanks @bjohansebas for including an additional step in the CI for the rollbacks!

@UlisesGascon UlisesGascon merged commit a0f6b29 into OpenPathfinder:main Mar 11, 2025
5 of 6 checks passed
@bjohansebas bjohansebas deleted the fix-migration branch March 11, 2025 13:34
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.

Fix rollback migration

2 participants