mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-01 14:59:06 +00:00
d285905826
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> |
||
---|---|---|
.. | ||
advanced | ||
developers | ||
features | ||
help | ||
installation | ||
translation | ||
upgrade | ||
usage | ||
advanced.en-us.md | ||
advanced.fr-fr.md | ||
advanced.zh-cn.md | ||
advanced.zh-tw.md | ||
developers.en-us.md | ||
developers.zh-cn.md | ||
developers.zh-tw.md | ||
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 | ||
installation.en-us.md | ||
installation.fr-fr.md | ||
installation.zh-cn.md | ||
installation.zh-tw.md | ||
translation.de-de.md | ||
translation.en-us.md | ||
translation.zh-tw.md | ||
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 |