From 8ff424546a780575135c93d6bb0afde06b1fe56a Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 13 Nov 2008 20:59:30 -0500 Subject: take a command-line argument to start with a particular user ID darcs-hash:20081114015930-84dde-c2556e2dd409f4c13f9063d77ad15974e6d0f3c4.gz --- scripts/fixup_inboxes.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts/fixup_inboxes.php') diff --git a/scripts/fixup_inboxes.php b/scripts/fixup_inboxes.php index c3ead16bf..ce8196dcd 100755 --- a/scripts/fixup_inboxes.php +++ b/scripts/fixup_inboxes.php @@ -34,9 +34,16 @@ define('LACONICA', true); require_once(INSTALLDIR . '/lib/common.php'); +$start_at = ($argc > 1) ? $argv[1] : NULL; + common_log(LOG_INFO, 'Updating user inboxes.'); $user = new User(); + +if ($start_at) { + $user->whereAdd('id >= ' . $start_at); +} + $cnt = $user->find(); $cache = common_memcache(); -- cgit v1.2.3-54-g00ecf