From ff9d802b6ef169dea7c6b3429207195dc6f7c7c5 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 8 Oct 2009 19:20:07 +0000 Subject: [PATCH] Database updates --- db/db.code.version.txt | 2 +- db/db.update.145.sql | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 db/db.update.145.sql diff --git a/db/db.code.version.txt b/db/db.code.version.txt index a29644e..13c09a0 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -144 +145 diff --git a/db/db.update.145.sql b/db/db.update.145.sql new file mode 100644 index 0000000..dc1e015 --- /dev/null +++ b/db/db.update.145.sql @@ -0,0 +1,9 @@ +ALTER TABLE `fundraising_donor_logs` ADD `type` VARCHAR( 32 ) NOT NULL; +ALTER TABLE `fundraising_donor_logs` ADD `fundraising_campaigns_id` INT UNSIGNED NULL; +ALTER TABLE `fundraising_donations` ADD `thanked` ENUM( 'no', 'yes' ) NOT NULL DEFAULT 'no'; +ALTER TABLE `fundraising_donations` ADD `datereceived` DATE NULL DEFAULT NULL; +ALTER TABLE `fundraising_campaigns` ADD `followupdate` DATE NULL DEFAULT NULL AFTER `enddate`; +UPDATE `config` SET category='Fundraising' WHERE var='fiscal_yearend'; +INSERT INTO `config` ( `var` , `val` , `category` , `type` , `type_values` , `ord` , `description` , `year`) VALUES ( 'registered_charity', 'no', 'Fundraising', 'yesno', '', '100', 'Is your organization a registered charity?', '-1'); +INSERT INTO `config` ( `var` , `val` , `category` , `type` , `type_values` , `ord` , `description` , `year`) VALUES ( 'charity_number', '', 'Fundraising', 'text', '', '200', 'Charity Registration Number', '-1'); +