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

Update the webauthn_credential_id_sequence in Postgres #19048

Merged
merged 4 commits into from
Mar 10, 2022

Commits on Mar 10, 2022

  1. Update the webauthn_credential_id_sequence in Postgres

    There is (yet) another problem with v210 in that Postgres will silently allow preset
    ID insertions ... but it will not update the sequence value.
    
    This PR simply adds a little step to the end of the v210 migration to update the
    sequence number.
    
    Users who have already migrated who find that they cannot insert new
    webauthn_credentials into the DB can either run:
    
    ```bash
    gitea doctor recreate-table webauthn_credential
    ```
    
    or
    
    ```bash
    ./gitea doctor --run=check-db-consistency --fix
    ```
    
    which will fix the bad sequence.
    
    Fix go-gitea#19012
    
    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Mar 10, 2022
    Configuration menu
    Copy the full SHA
    ff48df3 View commit details
    Browse the repository at this point in the history
  2. spelling mistakes

    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Mar 10, 2022
    Configuration menu
    Copy the full SHA
    ad642e2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b942bb4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    08e1fa4 View commit details
    Browse the repository at this point in the history