b7789c6533
This was due to duplicate notebook timestamps within the sqlite database, which meant that notebook_current included the placeholder "next ids" along with the actual notebooks. The fix was to modify the notebook_current view to filter out those placeholder ids.
4 lines
300 B
SQL
4 lines
300 B
SQL
DROP VIEW notebook_current;
|
|
CREATE VIEW notebook_current AS
|
|
SELECT id, revision, name, trash_id, deleted, user_id FROM notebook WHERE (notebook.revision IN (SELECT max(sub_notebook.revision) AS max FROM notebook sub_notebook WHERE (sub_notebook.id = notebook.id))) and notebook.name is not null;
|