mirror of
https://github.com/friendica/friendica
synced 2024-11-19 07:03:40 +00:00
Rename DBA::affected_rows to DBA::affectedRows
This commit is contained in:
parent
d3144e2837
commit
e42cf4d4fc
3 changed files with 4 additions and 4 deletions
|
@ -704,7 +704,7 @@ class DBA
|
||||||
*
|
*
|
||||||
* @return int Number of rows
|
* @return int Number of rows
|
||||||
*/
|
*/
|
||||||
public static function affected_rows() {
|
public static function affectedRows() {
|
||||||
return self::$affected_rows;
|
return self::$affected_rows;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -809,7 +809,7 @@ class Item extends BaseObject
|
||||||
}
|
}
|
||||||
|
|
||||||
// When there is no content for the "old" item table, this will count the fetched items
|
// When there is no content for the "old" item table, this will count the fetched items
|
||||||
$rows = DBA::affected_rows();
|
$rows = DBA::affectedRows();
|
||||||
|
|
||||||
while ($item = DBA::fetch($items)) {
|
while ($item = DBA::fetch($items)) {
|
||||||
|
|
||||||
|
|
|
@ -52,12 +52,12 @@ class Expire
|
||||||
logger('Deleting orphaned item activities - start', LOGGER_DEBUG);
|
logger('Deleting orphaned item activities - start', LOGGER_DEBUG);
|
||||||
$condition = ["NOT EXISTS (SELECT `iaid` FROM `item` WHERE `item`.`iaid` = `item-activity`.`id`)"];
|
$condition = ["NOT EXISTS (SELECT `iaid` FROM `item` WHERE `item`.`iaid` = `item-activity`.`id`)"];
|
||||||
DBA::delete('item-activity', $condition);
|
DBA::delete('item-activity', $condition);
|
||||||
logger('Orphaned item activities deleted: ' . DBA::affected_rows(), LOGGER_DEBUG);
|
logger('Orphaned item activities deleted: ' . DBA::affectedRows(), LOGGER_DEBUG);
|
||||||
|
|
||||||
logger('Deleting orphaned item content - start', LOGGER_DEBUG);
|
logger('Deleting orphaned item content - start', LOGGER_DEBUG);
|
||||||
$condition = ["NOT EXISTS (SELECT `icid` FROM `item` WHERE `item`.`icid` = `item-content`.`id`)"];
|
$condition = ["NOT EXISTS (SELECT `icid` FROM `item` WHERE `item`.`icid` = `item-content`.`id`)"];
|
||||||
DBA::delete('item-content', $condition);
|
DBA::delete('item-content', $condition);
|
||||||
logger('Orphaned item content deleted: ' . DBA::affected_rows(), LOGGER_DEBUG);
|
logger('Orphaned item content deleted: ' . DBA::affectedRows(), LOGGER_DEBUG);
|
||||||
|
|
||||||
// make this optional as it could have a performance impact on large sites
|
// make this optional as it could have a performance impact on large sites
|
||||||
if (intval(Config::get('system', 'optimize_items'))) {
|
if (intval(Config::get('system', 'optimize_items'))) {
|
||||||
|
|
Loading…
Reference in a new issue