provide storage for directory based reputation in the xlink table by setting xlink_static = 1, so that xlink_static = 0 is traditional poco linkages

This commit is contained in:
friendica
2015-01-26 19:13:06 -08:00
parent 9f5bfca28d
commit 0596097f86
7 changed files with 28 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1134 );
define( 'UPDATE_VERSION' , 1135 );
/**
*
@@ -1537,3 +1537,14 @@ function update_r1133() {
return UPDATE_FAILED;
}
function update_r1134() {
if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
$r = q("ALTER TABLE xlink ADD xlink_static numeric(1) NOT NULL DEFAULT '0', create index xlink_static on xlink ( \"xlink_static\" ) ");
}
else
$r = q("ALTER TABLE xlink ADD xlink_static TINYINT( 1 ) NOT NULL DEFAULT '0', ADD INDEX ( xlink_static ) ");
if($r)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}