From 03245e4a83c27e2545d4faf48f3e89c606cf5237 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 26 Aug 2014 19:18:19 -0700 Subject: [PATCH 1/3] increase guid.guid field length for redmatrix-over-diaspora communications --- boot.php | 2 +- update.php | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/boot.php b/boot.php index f4468bee92..74a14ae10a 100644 --- a/boot.php +++ b/boot.php @@ -14,7 +14,7 @@ require_once('include/features.php'); define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_VERSION', '3.2.1753' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); -define ( 'DB_UPDATE_VERSION', 1170 ); +define ( 'DB_UPDATE_VERSION', 1171 ); define ( 'EOL', "
\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); diff --git a/update.php b/update.php index 9303e5d19c..d0fddcf276 100644 --- a/update.php +++ b/update.php @@ -1,6 +1,6 @@ Date: Mon, 1 Sep 2014 21:45:34 -0700 Subject: [PATCH 2/3] resize the item guid field for protocol compatibility - it's getting truncated. --- boot.php | 2 +- database.sql | 2 +- update.php | 10 +++++++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/boot.php b/boot.php index 74a14ae10a..89c2d7d6f9 100644 --- a/boot.php +++ b/boot.php @@ -14,7 +14,7 @@ require_once('include/features.php'); define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_VERSION', '3.2.1753' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); -define ( 'DB_UPDATE_VERSION', 1171 ); +define ( 'DB_UPDATE_VERSION', 1172 ); define ( 'EOL', "
\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); diff --git a/database.sql b/database.sql index 0d45dda106..cbf8933f3d 100644 --- a/database.sql +++ b/database.sql @@ -507,7 +507,7 @@ CREATE TABLE IF NOT EXISTS `intro` ( CREATE TABLE IF NOT EXISTS `item` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `guid` char(64) NOT NULL, + `guid` char(255) NOT NULL, `uri` char(255) CHARACTER SET ascii NOT NULL, `uid` int(10) unsigned NOT NULL DEFAULT '0', `contact-id` int(10) unsigned NOT NULL DEFAULT '0', diff --git a/update.php b/update.php index d0fddcf276..f8c99135be 100644 --- a/update.php +++ b/update.php @@ -1,6 +1,6 @@ Date: Tue, 2 Sep 2014 01:08:50 -0700 Subject: [PATCH 3/3] so this is why my db updates were reverted ;-) --- include/dbstructure.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/dbstructure.php b/include/dbstructure.php index 45ba9b200d..bdf6b89246 100644 --- a/include/dbstructure.php +++ b/include/dbstructure.php @@ -621,7 +621,7 @@ function db_definition() { $database["guid"] = array( "fields" => array( "id" => array("type" => "int(10) unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1"), - "guid" => array("type" => "varchar(64)", "not null" => "1"), + "guid" => array("type" => "varchar(255)", "not null" => "1"), ), "indexes" => array( "PRIMARY" => array("id"), @@ -662,7 +662,7 @@ function db_definition() { $database["item"] = array( "fields" => array( "id" => array("type" => "int(10) unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1"), - "guid" => array("type" => "varchar(64)", "not null" => "1"), + "guid" => array("type" => "varchar(255)", "not null" => "1"), "uri" => array("type" => "varchar(255)", "not null" => "1"), "uid" => array("type" => "int(10) unsigned", "not null" => "1", "default" => "0"), "contact-id" => array("type" => "int(11)", "not null" => "1"),