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:
@@ -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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user