#!/usr/bin/env php . */ define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); $shortoptions = 'x::'; $longoptions = array('extensions='); $helptext = << $def) { $schemaUpdater->register($table, $def); } $schemaUpdater->checkSchema(); } function updateSchemaPlugins() { printfnq("Upgrading plugin schema"); Event::handle('CheckSchema'); } function fixupNoticesRendered() { printfnq("Ensuring all notices have rendered HTML"); $notice = new Notice(); $notice->whereAdd('rendered IS NULL'); $notice->find(); while ($notice->fetch()) { $original = clone($notice); $notice->rendered = common_render_content($notice->content, $notice); $notice->update($original); } } main();