Step 1 · StartINSERT throws UNIQUE constraint failed / SQLITE_CONSTRAINT
A write to a table with a UNIQUE column or index (often the primary business key, like userid or email) fails with D1ERROR: UNIQUE constraint failed.
What happens next
- passed → step 2, Confirm a row with that value already exists