From cb6f4a3dbb8a55297b9ad59d561fc65260a53cee Mon Sep 17 00:00:00 2001 From: james Date: Sun, 15 Oct 2006 20:42:02 +0000 Subject: [PATCH] update database length of email field from 32 to 128 update maxlength attribute of phone/fax fields to 32 (from 16) to line up with the db fields --- admin/award_sponsors.php | 4 ++-- db/db.code.version.txt | 2 +- db/db.update.27.sql | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 db/db.update.27.sql diff --git a/admin/award_sponsors.php b/admin/award_sponsors.php index 42f61a25..eb63547a 100644 --- a/admin/award_sponsors.php +++ b/admin/award_sponsors.php @@ -110,8 +110,8 @@ emit_province_selector("province_code",$r->province_code); echo "\n"; echo "".i18n("Postal Code")."postalcode\" size=\"8\" maxlength=\"7\" />\n"; - echo "".i18n("Phone")."phone)."\" size=\"16\" maxlength=\"16\" />\n"; - echo "".i18n("Fax")."fax)."\" size=\"16\" maxlength=\"16\" />\n"; + echo "".i18n("Phone")."phone)."\" size=\"16\" maxlength=\"32\" />\n"; + echo "".i18n("Fax")."fax)."\" size=\"16\" maxlength=\"32\" />\n"; echo "".i18n("Email")."email)."\" size=\"60\" maxlength=\"128\" />\n"; echo "".i18n("Notes")."\n"; echo "\n"; diff --git a/db/db.code.version.txt b/db/db.code.version.txt index 6f4247a6..f64f5d8d 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -26 +27 diff --git a/db/db.update.27.sql b/db/db.update.27.sql new file mode 100644 index 00000000..ea1f8abe --- /dev/null +++ b/db/db.update.27.sql @@ -0,0 +1 @@ +ALTER TABLE `award_sponsors` CHANGE `email` `email` VARCHAR( 128 ) NOT NULL;