Skip to content

Commit

Permalink
B3545 increased field length for phone
Browse files Browse the repository at this point in the history
  • Loading branch information
datazen committed Nov 6, 2014
1 parent bffc854 commit e978fcd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions catalog/includes/work/updates/runAfter/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,8 @@ public static function updateDB() {
$lC_Database->simpleQuery("CREATE TABLE IF NOT EXISTS `" . $pf . "payment_terms` (id int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', breakout varchar(255) NOT NULL DEFAULT '', threshold decimal(15,4) NOT NULL DEFAULT '0.0000', sort_order int(11) NOT NULL DEFAULT '0', `status` tinyint(1) NOT NULL DEFAULT '0', date_added datetime NOT NULL DEFAULT '0000-00-00 00:00:00', last_modified datetime NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (id)) ENGINE=" . $engine . " CHARACTER SET utf8 COLLATE utf8_general_ci;");
parent::log("Database Update: CREATE TABLE IF NOT EXISTS `" . $pf . "payment_terms` (id int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', breakout varchar(255) NOT NULL DEFAULT '', threshold decimal(15,4) NOT NULL DEFAULT '0.0000', sort_order int(11) NOT NULL DEFAULT '0', `status` tinyint(1) NOT NULL DEFAULT '0', date_added datetime NOT NULL DEFAULT '0000-00-00 00:00:00', last_modified datetime NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (id)) ENGINE=" . $engine . " CHARACTER SET utf8 COLLATE utf8_general_ci;");

$lC_Database->simpleQuery("ALTER IGNORE TABLE `" . $pf . "branding_data` CHANGE `support_phone` `support_phone` VARCHAR(128) NOT NULL DEFAULT '', CHANGE `sales_phone` `sales_phone` VARCHAR(128) NOT NULL DEFAULT ''");
parent::log("Database Update: ALTER IGNORE TABLE `" . $pf . "branding_data` CHANGE `support_phone` `support_phone` VARCHAR(128) NOT NULL DEFAULT '', CHANGE `sales_phone` `sales_phone` VARCHAR(128) NOT NULL DEFAULT ''");
}
}
?>
4 changes: 2 additions & 2 deletions catalog/install/loadedcommerce.sql
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ DROP TABLE IF EXISTS lc_branding_data;
CREATE TABLE IF NOT EXISTS lc_branding_data (
site_image varchar(128) NOT NULL DEFAULT '',
chat_code varchar(8192) NOT NULL DEFAULT '',
support_phone varchar(16) NOT NULL DEFAULT '',
support_phone varchar(128) NOT NULL DEFAULT '',
support_email varchar(128) NOT NULL DEFAULT '',
sales_phone varchar(16) NOT NULL DEFAULT '',
sales_phone varchar(128) NOT NULL DEFAULT '',
sales_email varchar(128) NOT NULL DEFAULT '',
og_image varchar(128) NOT NULL DEFAULT '',
meta_delimeter varchar(128) NOT NULL DEFAULT '',
Expand Down
4 changes: 2 additions & 2 deletions catalog/install/loadedcommerce_innodb.sql
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ DROP TABLE IF EXISTS lc_branding_data;
CREATE TABLE IF NOT EXISTS lc_branding_data (
site_image varchar(128) NOT NULL DEFAULT '',
chat_code varchar(8192) NOT NULL DEFAULT '',
support_phone varchar(16) NOT NULL DEFAULT '',
support_phone varchar(128) NOT NULL DEFAULT '',
support_email varchar(128) NOT NULL DEFAULT '',
sales_phone varchar(16) NOT NULL DEFAULT '',
sales_phone varchar(128) NOT NULL DEFAULT '',
sales_email varchar(128) NOT NULL DEFAULT '',
og_image varchar(128) NOT NULL DEFAULT '',
meta_delimeter varchar(128) NOT NULL DEFAULT '',
Expand Down

0 comments on commit e978fcd

Please sign in to comment.