From 98755a5e4a2429dd48e3e680ef759d05464b3b63 Mon Sep 17 00:00:00 2001 From: james Date: Fri, 18 Sep 2009 15:12:10 +0000 Subject: [PATCH] Make sponsorships table able to handle either an organization sponsor (linked to sponsors) or an individual sponsor (linked to users) --- db/db.code.version.txt | 2 +- db/db.update.135.sql | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 db/db.update.135.sql diff --git a/db/db.code.version.txt b/db/db.code.version.txt index 405e2af..c8b255f 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -134 +135 diff --git a/db/db.update.135.sql b/db/db.update.135.sql new file mode 100644 index 0000000..4c2130f --- /dev/null +++ b/db/db.update.135.sql @@ -0,0 +1,2 @@ +ALTER TABLE `sponsorships` ADD `users_uid` INT NULL DEFAULT NULL AFTER `sponsors_id` ; +ALTER TABLE `sponsorships` CHANGE `sponsors_id` `sponsors_id` INT( 11 ) NULL DEFAULT NULL