mozilla / mentat

UNMAINTAINED A persistent, relational store inspired by Datomic and DataScript.
https://mozilla.github.io/mentat/
Apache License 2.0
1.65k stars 115 forks source link

Allow expanding bootstrap identifiers #124

Closed rnewman closed 7 years ago

rnewman commented 7 years ago

We recently added new ones. That bumps the part range. I don't know why, but apparently we re-bootstrap, and that causes a failure because of a conflict in the parts table.

rnewman commented 7 years ago
Opening Datomish knowledge-base at /Users/rnewman/Library/Application Support/Tofino-dev/browser-datomish.db
unhandledRejection at: Promise {}
unhandledRejection Error: SQLITE_CONSTRAINT: UNIQUE constraint failed: parts.part
    at Error (native)

This might be a dead-end if we fail at some point after creating parts, but before finishing initial setup… those things should be inside a transaction!

rnewman commented 7 years ago

I fixed this in my migration work.