-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
feat(migrations): Add in SafeRemoveField
migration operation
#81098
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
the
Scope: Backend
Automatically applied to PRs that change backend components
label
Nov 21, 2024
Note that this pr looks huge, but it's mostly just boilerplate from tests. I recommend marking all the tests viewed to focus on the core changes |
wedamija
added a commit
to getsentry/sentry-docs
that referenced
this pull request
Nov 21, 2024
This uses the new operations from getsentry/sentry#81063 getsentry/sentry#81098
wedamija
force-pushed
the
danf/migrations-safe-col-deletes
branch
from
November 21, 2024 02:14
095e782
to
19ca00a
Compare
markstory
reviewed
Nov 21, 2024
wedamija
force-pushed
the
danf/migrations-safe-deletes
branch
from
November 21, 2024 22:49
a3cfac3
to
e187edf
Compare
wedamija
force-pushed
the
danf/migrations-safe-col-deletes
branch
from
November 21, 2024 22:52
19ca00a
to
6d9aeb4
Compare
This builds on #81063 This adds in `SafeDeleteColumn`, which works the same way as `SafeDeleteModel`, except on database columns. It performs checks that the column doesn't have a db constraint set, and also that it is either nullable or has a db_default set. Similarly to `SafeDeleteModel` we still need to be careful to make sure that the pending deletion merges and deploys first, and then the real deletion.
wedamija
force-pushed
the
danf/migrations-safe-col-deletes
branch
from
November 22, 2024 17:07
f71a44d
to
2753829
Compare
wedamija
added a commit
to getsentry/sentry-docs
that referenced
this pull request
Nov 22, 2024
This uses the new operations from getsentry/sentry#81063 getsentry/sentry#81098
markstory
approved these changes
Nov 22, 2024
wedamija
changed the title
feat(migrations): Add in
feat(migrations): Add in Nov 22, 2024
SafeDeleteColumn
migration operationSafeRemoveField
migration operation
wedamija
added a commit
to getsentry/sentry-docs
that referenced
this pull request
Nov 22, 2024
This uses the new operations from getsentry/sentry#81063 getsentry/sentry#81098
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This builds on #81063
This adds in
SafeRemoveField
, which works the same way asSafeRemoveField
, except on database columns.It performs checks that the column doesn't have a db constraint set, and also that it is either nullable or has a db_default set.
Similarly to
SafeRemoveField
we still need to be careful to make sure that the pending deletion merges and deploys first, and then the real deletion.