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(migration) Fix exception in data migration 0233 #29271

Merged
merged 3 commits into from
Oct 13, 2021

Conversation

evanh
Copy link
Member

@evanh evanh commented Oct 12, 2021

This was tested using the wrong method, and wasn't tested against the correct
version of the apps that Django uses in production. That testing uncovered
some bugs in the fields being used that are present on the regular models but
not in the models used in migrations.

This both fixes the old migration (to avoid a bunch of error messages getting logged)
as well as adding a new migration to ensure customers who already ran the old
migration are automatically brought up to date.

This migration wasn't actually run in prod, since I had manually done the migration
with a separate script earlier. I tested this using the correct version of the apps
locally. This needs to get merged before the next release gets cut.

This was tested using the wrong method, and wasn't tested against the correct
version of the `apps` that Django uses in production. That testing uncovered
some bugs in the fields being used that are present on the regular models but
not in the models used in migrations.
@evanh evanh requested a review from a team as a code owner October 12, 2021 20:49
@evanh evanh requested review from wedamija and a team and removed request for a team October 12, 2021 20:50
@github-actions
Copy link
Contributor

This PR has a migration; here is the generated SQL

--
-- MIGRATION NOW PERFORMS OPERATION THAT CANNOT BE WRITTEN AS SQL:
-- Raw Python operation
--

@evanh evanh merged commit 114a838 into master Oct 13, 2021
@evanh evanh deleted the evanh/fix/subscription-migration branch October 13, 2021 18:47
@github-actions github-actions bot locked and limited conversation to collaborators Oct 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants