| 1 | -- The state each followed bookmark's pins were indexed at (oxygenhub#210): |
| 2 | -- the reconciler compares it with the bookmark as it is and re-indexes |
| 3 | -- where they differ, so an index write that failed is mended within |
| 4 | -- minutes rather than at the next restart. |
| 5 | ( |
| 6 | consumer_id INTEGER NOT NULL REFERENCES repositories(id) ON DELETE CASCADE, |
| 7 | bookmark TEXT NOT NULL, |
| 8 | heads TEXT NOT NULL, |
| 9 | updated_ms INTEGER NOT NULL, |
| 10 | PRIMARY KEY (consumer_id, bookmark) |
| 11 | ); |