From b7789c653307991b0cd3e23f02291bef1f2c4d4a Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 4 Dec 2008 12:30:59 -0800 Subject: [PATCH] Fixed a bug in which certain new installations of Luminotes Desktop on Windows yielded an "uh oh" error on initial launch. 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. --- NEWS | 5 +++++ config/Version.py | 2 +- model/delta/1.5.10.sql | 3 +++ model/schema.sqlite | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 model/delta/1.5.10.sql diff --git a/NEWS b/NEWS index df68dce..4db1ec6 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,8 @@ +1.5.10: December 4, 2008 + * Fixed a bug in which certain new installations of Luminotes Desktop + on Windows yielded an "uh oh" error on initial launch. This bug did + not occur during upgrades. It only affected new installations. + 1.5.9: December 3, 2008 * When you hover the mouse over a link and a link pulldown appears, that pulldown will now automatically disappear soon after you move the mouse diff --git a/config/Version.py b/config/Version.py index 61ebe8c..0252ace 100644 --- a/config/Version.py +++ b/config/Version.py @@ -1 +1 @@ -VERSION = u"1.5.9" +VERSION = u"1.5.10" diff --git a/model/delta/1.5.10.sql b/model/delta/1.5.10.sql new file mode 100644 index 0000000..f0d2610 --- /dev/null +++ b/model/delta/1.5.10.sql @@ -0,0 +1,3 @@ +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; diff --git a/model/schema.sqlite b/model/schema.sqlite index 110d5e2..8caae64 100644 --- a/model/schema.sqlite +++ b/model/schema.sqlite @@ -104,7 +104,7 @@ CREATE TABLE notebook ( ); 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))); + 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; CREATE TABLE password_reset ( id text NOT NULL,