From dd7647aa9538abdc24edf9c89b8e563bbdbb519e Mon Sep 17 00:00:00 2001 From: James Walker Date: Wed, 28 Jul 2010 11:49:09 -0400 Subject: [PATCH] script to normalize status_network tags --- scripts/fixup_status_network.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 scripts/fixup_status_network.php diff --git a/scripts/fixup_status_network.php b/scripts/fixup_status_network.php new file mode 100644 index 0000000000..dae492a860 --- /dev/null +++ b/scripts/fixup_status_network.php @@ -0,0 +1,32 @@ +#!/usr/bin/env php +. + */ + +print "BEGIN\n"; +define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); + +require_once INSTALLDIR.'/scripts/commandline.inc'; + +common_log(LOG_INFO, 'Beginning conversion...'); + +$sn = new Status_network(); +$sn->find(); +while ($sn->fetch()) { + $sn->setTags(explode('|', $sn->tags)); +} -- 2.39.5