From 4d6973cd700ff3fa9c84ead56e64852832281b31 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Wed, 29 Sep 2010 13:29:58 -0700 Subject: Intialize new fave tallys with total existing fave count per notice --- .../scripts/initialize_fave_tallys.php | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 plugins/AnonymousFave/scripts/initialize_fave_tallys.php (limited to 'plugins/AnonymousFave/scripts') diff --git a/plugins/AnonymousFave/scripts/initialize_fave_tallys.php b/plugins/AnonymousFave/scripts/initialize_fave_tallys.php new file mode 100644 index 000000000..f7ea6d1ef --- /dev/null +++ b/plugins/AnonymousFave/scripts/initialize_fave_tallys.php @@ -0,0 +1,38 @@ +#!/usr/bin/env php +. + */ + +define('INSTALLDIR', realpath(dirname(__FILE__) . '/../../..')); + +$helptext = <<find(); + +while ($notice->fetch()) { + Fave_tally::ensureTally($notice->id); +} + -- cgit v1.2.3-54-g00ecf