From ab76d8b3292e3044af4c9dc5fa890a72e2763474 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 13 Dec 2007 17:10:11 +0000 Subject: [PATCH] switch the stock entries in the database if anything's usign the old values --- db/db.code.version.txt | 2 +- db/db.update.78.sql | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 db/db.update.78.sql diff --git a/db/db.code.version.txt b/db/db.code.version.txt index 987e7ca..8e14edc 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -77 +78 diff --git a/db/db.update.78.sql b/db/db.update.78.sql new file mode 100644 index 0000000..7e26292 --- /dev/null +++ b/db/db.update.78.sql @@ -0,0 +1,4 @@ +UPDATE `reports_items` SET value='5161' WHERE `type`='options' AND `field`='stock' AND `value`='5961'; +UPDATE `reports_items` SET value='5164' WHERE `type`='options' AND `field`='stock' AND `value`='5964'; +UPDATE `reports_committee` SET `stock`='5161' WHERE `stock`='5961'; +UPDATE `reports_committee` SET `stock`='5164' WHERE `stock`='5964';