forgejo/docs/content/doc
zeripath d285905826
Update the webauthn_credential_id_sequence in Postgres (#19048) (#19060)
Backport #19048

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
SELECT setval('webauthn_credential_id_seq', COALESCE((SELECT MAX(id)+1 FROM `webauthn_credential`), 1), false)
```

which will fix the bad sequence.

Fix #19012

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: 6543 <6543@obermui.de>
2022-03-13 12:02:19 +08:00
..
advanced Support webauthn (#17957) 2022-01-14 16:03:31 +01:00
developers Update the webauthn_credential_id_sequence in Postgres (#19048) (#19060) 2022-03-13 12:02:19 +08:00
features Fix various typos of software names (#18083) 2021-12-24 11:56:57 +08:00
help Fix various typos of software names (#18083) 2021-12-24 11:56:57 +08:00
installation Make docker gitea/gitea:v1.16-dev etc refer to the latest build on that branch (#18551) (#18569) 2022-02-03 12:00:33 +00:00
translation Add german translation guidelines (#14283) 2021-01-22 20:12:50 +01:00
upgrade Fix typos in docs/content (#18215) 2022-01-09 19:53:03 +08:00
usage docs: mention client_max_body_size affects LFS (#18291) 2022-01-15 17:26:01 -05:00
advanced.en-us.md
advanced.fr-fr.md
advanced.zh-cn.md
advanced.zh-tw.md [docs] Add zh-tw Translations (#14507) 2021-01-29 01:57:58 +01:00
developers.en-us.md
developers.zh-cn.md Add documentation for backend development (#17512) 2021-11-23 10:10:18 +08:00
developers.zh-tw.md [docs] Add zh-tw Translations (#14507) 2021-01-29 01:57:58 +01:00
features.en-us.md
features.zh-cn.md
features.zh-tw.md
help.en-us.md
help.fr-fr.md
help.zh-cn.md
help.zh-tw.md [docs] Add zh-tw Translations (#14507) 2021-01-29 01:57:58 +01:00
installation.en-us.md
installation.fr-fr.md
installation.zh-cn.md
installation.zh-tw.md
translation.de-de.md Add german translation guidelines (#14283) 2021-01-22 20:12:50 +01:00
translation.en-us.md Add german translation guidelines (#14283) 2021-01-22 20:12:50 +01:00
translation.zh-tw.md [docs] Add zh-tw Translations (#14507) 2021-01-29 01:57:58 +01:00
upgrade.en-us.md
upgrade.fr-fr.md
upgrade.zh-cn.md
upgrade.zh-tw.md
usage.en-us.md
usage.zh-cn.md
usage.zh-tw.md [docs] Add zh-tw Translations (#14507) 2021-01-29 01:57:58 +01:00