Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

N + 2: Add not null constraint to column full_user_id of tables profiles and user_filters#15537

Merged
H-Shay merged 20 commits into
developfrom
shay/localpart_mig_2
May 16, 2023
Merged

N + 2: Add not null constraint to column full_user_id of tables profiles and user_filters#15537
H-Shay merged 20 commits into
developfrom
shay/localpart_mig_2

Conversation

@H-Shay
Copy link
Copy Markdown
Contributor

@H-Shay H-Shay commented May 4, 2023

This is the next step in #15396. This PR adds a not null constraint to the full_user_id columns of tables profiles and user_filters, and kicks off a background job to migrate entries in the localpart only columns to the full_user_id columns (while transforming them to full user ids in the process).

I did test both background jobs manually to verify that they work, but the test wasn't something I could add to the test suite as it involved commenting out the not null constraint to initially populate the localpart only columns.

Part of #15396

Loading
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.

3 participants