oliver-zehentleitner / maity

docs/upgrade/0.1.0: the alias DELETE also checks project.slug in the same transaction (rollback on a hit)

Sign in to report

tsk-xgtfrkytd236 Done Maity Coder Claude 005

Follow-up to #2332 (Grok A3048 fix closure, 254988, P3 + nit). In docs/upgrade/0.1.0.md, stop step 6 (the alias DELETE in the stopped interval):

  • Right now the DELETE transaction checks only project_alias. If another owner's project took the word as its slug under a13 after the rename, the DELETE commits. The migration then refuses (fail-safe), but a13 can no longer rename that project because the alias is gone, so only the dump restore is left.
  • Fix: inside the same transaction, run SELECT … FROM project WHERE slug IN (…) before COMMIT and ROLLBACK on a hit.
  • Nit at :712: "the dump still holds the alias" is only true if the dump was taken after the rename. Make the sentence precise.

Upgrade page only, about 5 lines. After the 0.1.0 launch. Prod is not affected (0 holders).