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
..
2021-11-19 01:42:27 +08:00
2021-10-21 17:22:43 +08:00
2022-02-03 11:20:37 -05:00
2022-02-16 21:15:49 +00:00
2022-01-05 07:00:32 +01:00
2022-01-02 21:12:35 +08:00
2022-01-14 16:03:31 +01:00
2022-02-20 21:47:17 +00:00
2022-03-13 12:02:19 +08:00
2022-01-05 11:37:00 +08:00
2022-01-02 21:12:35 +08:00
2022-02-09 20:19:48 +00:00
2022-01-01 04:31:24 +01:00
2022-03-02 19:57:18 +01:00
2022-01-05 15:00:20 -06:00
2021-12-10 09:27:50 +08:00
2022-01-05 11:37:00 +08:00
2021-12-10 09:27:50 +08:00
2021-12-12 23:48:20 +08:00
2021-12-16 19:01:14 +00:00
2021-12-10 09:27:50 +08:00
2021-12-10 09:27:50 +08:00
2021-12-10 09:27:50 +08:00
2021-12-15 13:39:34 +08:00
2022-02-03 11:20:37 -05:00
2021-11-17 20:34:35 +08:00
2021-12-10 09:27:50 +08:00
2021-12-07 13:44:08 +08:00
2021-12-12 23:48:20 +08:00
2021-12-10 09:27:50 +08:00
2021-11-12 22:36:47 +08:00
2021-09-22 13:38:34 +08:00
2021-12-10 09:27:50 +08:00
2021-12-10 09:27:50 +08:00
2021-11-24 17:49:20 +08:00
2021-12-10 09:27:50 +08:00
2021-12-10 09:27:50 +08:00
2021-12-10 09:27:50 +08:00
2022-01-19 01:28:38 +08:00
2021-11-24 17:49:20 +08:00
2021-12-10 09:27:50 +08:00
2021-12-10 09:27:50 +08:00
2021-12-10 09:27:50 +08:00
2021-11-16 16:53:21 +08:00
2021-12-29 21:02:12 +08:00
2022-01-17 19:31:58 +01:00
2022-01-17 19:31:58 +01:00
2022-01-26 22:09:07 +00:00
2021-12-10 09:27:50 +08:00
2021-12-15 13:39:34 +08:00
2021-11-24 17:49:20 +08:00
2021-12-10 09:27:50 +08:00
2022-01-17 19:31:58 +01:00
2021-11-24 17:49:20 +08:00
2021-12-10 09:27:50 +08:00
2021-12-10 09:27:50 +08:00
2021-12-10 09:27:50 +08:00
2021-11-17 20:34:35 +08:00
2021-12-15 13:39:34 +08:00
2021-12-10 09:27:50 +08:00
2021-12-10 09:27:50 +08:00
2022-01-17 19:31:58 +01:00
2021-12-10 09:27:50 +08:00
2022-03-10 16:06:35 +01:00
2021-12-10 16:14:24 +08:00
2022-02-17 17:57:05 +00:00
2022-02-17 17:57:05 +00:00
2021-11-24 17:49:20 +08:00
2022-03-10 01:48:27 -05:00
2022-02-02 08:40:04 +00:00
2022-02-02 08:40:04 +00:00
2021-12-10 09:27:50 +08:00
2022-01-05 11:37:00 +08:00
2021-12-08 14:57:18 +08:00
2021-12-10 09:27:50 +08:00
2021-11-12 22:36:47 +08:00
2021-11-21 23:41:00 +08:00
2021-12-10 09:27:50 +08:00
2021-12-10 09:27:50 +08:00
2022-01-03 20:45:58 +01:00
2022-01-03 20:45:58 +01:00
2021-12-10 09:27:50 +08:00
2021-12-12 23:48:20 +08:00
2021-12-10 09:27:50 +08:00
2021-12-10 09:27:50 +08:00
2021-12-12 23:48:20 +08:00
2021-06-07 07:27:09 +02:00
2021-12-12 23:48:20 +08:00
2021-11-16 16:53:21 +08:00
2022-01-18 07:45:14 +00:00
2021-12-10 09:27:50 +08:00
2022-01-05 11:37:00 +08:00
2022-03-05 00:12:34 +08:00
2021-12-10 09:27:50 +08:00
2021-12-12 23:48:20 +08:00
2022-03-05 00:12:34 +08:00
2021-11-24 17:49:20 +08:00
2022-01-10 17:32:37 +08:00
2022-01-02 21:12:35 +08:00
2021-12-10 09:27:50 +08:00
2021-11-17 20:34:35 +08:00
2022-01-02 21:12:35 +08:00
2021-11-21 23:41:00 +08:00
2021-11-24 17:49:20 +08:00
2021-11-24 17:49:20 +08:00
2021-12-29 21:02:12 +08:00
2021-12-29 21:02:12 +08:00
2021-11-28 22:11:58 +08:00
2021-11-28 22:11:58 +08:00