fix(e2e): bunyip-e2e-bootstrap ON CONFLICT match partial unique index (BUNYIP-161) #182
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/BUNYIP-161-bootstrap-partial-index-conflict"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Fixes
bunyip-e2e-bootstrapfailing to seed the E2E accounts:users.emailuniqueness is a PARTIAL unique index since migration20260324000029_soft_delete_email_unique.sql(users_email_unique_active: UNIQUE (email) WHERE deleted_at IS NULL), so the bootstrap's bareON CONFLICT (email)has no matching arbiter. Adds the predicate:The bootstrap (BUNYIP-52) predates that migration and had never run against the post-migration schema.
Test
Not compiled locally (musl/dunite workspace build); CI validates. SQL string literal, runtime
sqlx::query(noquery!macro, no.sqlxregen), no Rust type impact. The INSERT supplies all NOT NULL-without-default columns, so no second error.Deploy note
c-01 must rebuild the bunyip-api image (CI on merge) and redeploy before re-running
just e2e-bootstrap; the fix is in the binary.#BUNYIP-161