Commit 7d406cf
committed
[fix] Personal access token name fix
Until now a random string was generated as a personal access token name
in the schema upgrade script that copies auth session tokens to the
personal_access_tokens table. In rare cases the random generator could
return the same random string twice. For this reason in PostgreSQL an
incremental integer is used instead of the random name.
Until now all auth session tokens became a personal access token. From
now only the "can_expire = false" tokens become personal access tokens.1 parent 99a4952 commit 7d406cf
File tree
1 file changed
+14
-6
lines changed- web/server/codechecker_server/migrations/config/versions
1 file changed
+14
-6
lines changedLines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 49 | + | |
52 | 50 | | |
53 | | - | |
54 | | - | |
| 51 | + | |
55 | 52 | | |
56 | 53 | | |
57 | 54 | | |
58 | 55 | | |
59 | 56 | | |
60 | 57 | | |
61 | | - | |
| 58 | + | |
62 | 59 | | |
63 | 60 | | |
| 61 | + | |
64 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
| |||
0 commit comments