Commit f510014
committed
fix(data/smartphone,scripts): drop duplicate honor-magic-7-pro and guard against future slug collisions
The seed/dump loaders fail on `UNIQUE constraint failed: smartphones.slug`
because two records share `slug=honor-magic-7-pro` - a 2024-10-30 China
launch and a 2025-01-08 global launch. Keep the earlier `verified: true`
record under data/smartphone/honor/2024/ and remove the duplicate.
Also harden `scripts/validate.py` with `_check_unique_slugs` so a future
duplicate is caught before the seed step blows up CI (Test + Pages
+ refresh-data workflows all hit the same error on 985007d).
Refs #11 parent 985007d commit f510014
2 files changed
Lines changed: 26 additions & 39 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
113 | 130 | | |
114 | 131 | | |
115 | 132 | | |
| |||
122 | 139 | | |
123 | 140 | | |
124 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
125 | 151 | | |
126 | 152 | | |
127 | 153 | | |
| |||
0 commit comments