Closed michplunkett closed 1 year ago
Would doing this as a separate migration cause issues for us when we try to apply changes to our instance?
The thing you'd have to make sure of is that the _uuid
field isn't ever null when it's marked as non-null. Other than that, you could do this any which way you wanted, imo. That's the one limitation.
Description of Changes
The previous build ran into a problem where we added a middleware creation for the
_uuid
column in theusers
table, but did not deal with the problem of the rows that lacked UUIDs in theusers
table. This was dealt with through the use of a loop in the migration that adds a UUID to all pre-existing rows via Python 🐍.Tests and linting
develop
branch.pytest
passes on my local development environment.pre-commit
passes on my local development environment.