Repository navigation
Commit 9131a7d
fix(ads): ref_slug no longer truncates past campaign 999
lpad(seq::text, 3, '0') truncates longer strings, so campaign 1000 became
crawlproof-ad-100 and every new campaign hit ad_campaigns_ref_slug_key.
Pad to at least three digits; existing slugs are unchanged. Applied to prod.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 1c51cd1 commit 9131a7d
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments