Skip to content

[db] Reset primary keys in d_b_oauth_auth_code_entry #13649

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

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

andrew-farries
Copy link
Contributor

Description

Reset the primary keys in the d_b_oauth_auth_code_entry table to random uuids.

The type of the primary key column was changed in #13616 to allow storing uids, but the field now contains a mix of integer values (for existing records) and uids (for new records). In order to be able to sync the table with db-sync we need to replace the integer values with uuids.

The value of the primary key for each record doesn't matter so long as it is unique across both EU and US databases, so resetting the primary key values of all rows will work fine.

Related Issue(s)

Part of #9198

How to test

Release Notes

NONE

Documentation

Werft options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide

@andrew-farries andrew-farries requested a review from a team October 6, 2022 13:32
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Oct 6, 2022
Copy link
Member

@geropl geropl left a comment

Choose a reason for hiding this comment

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

Make sense, thank you! 🙏

@roboquat roboquat merged commit 63f283e into main Oct 6, 2022
@roboquat roboquat deleted the af/reset-pk-in-auth-code-table branch October 6, 2022 13:57
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/S team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants