Commit 6ab2feb
committed
Set
Fixes it always updating, since a `null` guild ID is used for global commands, and it was always distinct, meaning it never triggered the UNIQUE constraint, thus always creating a new entry in some casesNULLS NOT DISTINCT on constraint of database-backed app commands cache key1 parent 728859d commit 6ab2feb
File tree
2 files changed
+18
-2
lines changed- BotCommands-core/src/main
- kotlin/io/github/freya022/botcommands/internal/core/db
- resources/bc_database_scripts
2 files changed
+18
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments