deprecate the item_id table - replace with iconfig. A possibly useful function in the iconfig class would be a search which takes a service id and type and uid, matches against an item and returns the iid. That could save a bit of code duplication.

This commit is contained in:
redmatrix
2016-06-13 19:58:24 -07:00
parent 6d4188f05e
commit 1e68d4fb75
24 changed files with 172 additions and 145 deletions

View File

@@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1176 );
define( 'UPDATE_VERSION' , 1177 );
/**
*
@@ -2254,3 +2254,16 @@ function update_r1175() {
return UPDATE_FAILED;
}
function update_r1176() {
$r = q("select * from item_id where true");
if($r) {
foreach($r as $rr) {
\Zotlabs\Lib\IConfig::Set($rr['iid'],'system',$rr['service'],$rr['sid'],true);
}
}
return UPDATE_SUCCESS;
}