mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-13 10:42:17 -04:00
Cleanup previous PR
Return items_ids rather than note_ids as the rest of the API uses items_ids to reference notes not note_ids. Also allow querying for only a single field if needed.
This commit is contained in:
@@ -8,6 +8,8 @@ CREATE TABLE notes_db.notes ( id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
UNIQUE(item, colname)
|
||||
);
|
||||
|
||||
CREATE INDEX notes_db.notes_colname_idx ON notes (colname);
|
||||
|
||||
CREATE TABLE notes_db.resources (
|
||||
hash TEXT NOT NULL PRIMARY KEY ON CONFLICT FAIL,
|
||||
name TEXT NOT NULL UNIQUE ON CONFLICT FAIL
|
||||
|
||||
Reference in New Issue
Block a user