From 89547f902ab4f27c4d1542c1de941fb293cfdeb5 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 22 Feb 2010 18:45:57 +0000 Subject: [PATCH] Some fairs did a rollvoer before the NULL was fixed (I think it was fixed), and reset some award sources to 0 instead of NULL. award_source_fairs_id can never be 0 anyway (unless someone edits the DB manually), so just set them back to NULL so the existing code works. --- db/db.code.version.txt | 2 +- db/db.update.166.sql | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 db/db.update.166.sql diff --git a/db/db.code.version.txt b/db/db.code.version.txt index 9e42f3e..cdffbbc 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -165 +166 diff --git a/db/db.update.166.sql b/db/db.update.166.sql new file mode 100644 index 0000000..57ce1ad --- /dev/null +++ b/db/db.update.166.sql @@ -0,0 +1,2 @@ +UPDATE award_awards SET award_source_fairs_id=NULL WHERE award_source_fairs_id=0; +