Browse Source

resize the item guid field for protocol compatibility - it's getting truncated.

pull/1098/head
friendica 7 years ago
parent
commit
9464af0eef
3 changed files with 11 additions and 3 deletions
  1. +1
    -1
      boot.php
  2. +1
    -1
      database.sql
  3. +9
    -1
      update.php

+ 1
- 1
boot.php View File

@ -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', "<br />\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );


+ 1
- 1
database.sql View File

@ -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',


+ 9
- 1
update.php View File

@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1171 );
define( 'UPDATE_VERSION' , 1172 );
/**
*
@ -1606,3 +1606,11 @@ function update_1170() {
return UPDATE_FAILED;
return UPDATE_SUCCESS;
}
function update_1171() {
$r = q("ALTER TABLE `item` CHANGE `guid` `guid` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL");
if (!$r)
return UPDATE_FAILED;
return UPDATE_SUCCESS;
}

Loading…
Cancel
Save