add a guid to directory update table to avoid recursion
This commit is contained in:
parent
625dcb911a
commit
00622779f3
2
boot.php
2
boot.php
@ -43,7 +43,7 @@ require_once('include/taxonomy.php');
|
|||||||
define ( 'RED_PLATFORM', 'Red Matrix' );
|
define ( 'RED_PLATFORM', 'Red Matrix' );
|
||||||
define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'R');
|
define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'R');
|
||||||
define ( 'ZOT_REVISION', 1 );
|
define ( 'ZOT_REVISION', 1 );
|
||||||
define ( 'DB_UPDATE_VERSION', 1064 );
|
define ( 'DB_UPDATE_VERSION', 1065 );
|
||||||
|
|
||||||
define ( 'EOL', '<br />' . "\r\n" );
|
define ( 'EOL', '<br />' . "\r\n" );
|
||||||
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
|
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
|
||||||
|
@ -882,8 +882,10 @@ CREATE TABLE IF NOT EXISTS `tokens` (
|
|||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `updates` (
|
CREATE TABLE IF NOT EXISTS `updates` (
|
||||||
`ud_hash` char(128) NOT NULL,
|
`ud_hash` char(128) NOT NULL,
|
||||||
|
`ud_guid` char(255) NOT NULL DEFAULT '',
|
||||||
`ud_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
`ud_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||||
PRIMARY KEY (`ud_hash`),
|
PRIMARY KEY (`ud_hash`),
|
||||||
|
KEY `ud_guid` (`ud_guid`),
|
||||||
KEY `ud_date` (`ud_date`)
|
KEY `ud_date` (`ud_date`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
define( 'UPDATE_VERSION' , 1064 );
|
define( 'UPDATE_VERSION' , 1065 );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -750,3 +750,12 @@ ADD INDEX ( `xchan_follow` ), ADD INDEX ( `xchan_connpage`) ");
|
|||||||
return UPDATE_SUCCESS;
|
return UPDATE_SUCCESS;
|
||||||
return UPDATE_FAILED;
|
return UPDATE_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function update_r1064() {
|
||||||
|
$r = q("ALTER TABLE `updates` ADD `ud_guid` CHAR( 255 ) NOT NULL DEFAULT '' AFTER `ud_hash` ,
|
||||||
|
ADD INDEX ( `ud_guid` )");
|
||||||
|
if($r)
|
||||||
|
return UPDATE_SUCCESS;
|
||||||
|
return UPDATE_FAILED;
|
||||||
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user