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