From: James Walker Date: Wed, 28 Jul 2010 15:49:09 +0000 (-0400) Subject: script to normalize status_network tags X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dd7647aa9538abdc24edf9c89b8e563bbdbb519e;p=quix0rs-gnu-social.git script to normalize status_network tags --- 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)); +}