This repository was archived by the owner on Apr 21, 2026. It is now read-only.
Commit df16cf6
fix: Add unique index on tags(blog_id, name) to prevent duplicate tags
Duplicate tags accumulated when the edit flow's deleteBlogTags() silently
failed (due to val() precision loss on BIGINT IDs) while saveTags() still
inserted new rows. Cleaned up 97 existing duplicates and added a database
constraint to prevent recurrence.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 68f4958 commit df16cf6
1 file changed
Lines changed: 36 additions & 0 deletions
Lines changed: 36 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 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
0 commit comments