namespace Friendica\Core\Console;
-use Friendica\Core\L10n;
use Friendica\Core\Config;
+use Friendica\Core\L10n;
+use Friendica\Core\Update;
/**
* Performs database post updates
protected function doExecute()
{
- $a = get_app();
+ $a = \Friendica\BaseObject::getApp();
if ($this->getOption($this->helpOptions)) {
$this->out($this->getHelp());
return 0;
}
- if (App\Mode::isInstall()) {
+ if ($a->getMode()->isInstall()) {
throw new \RuntimeException('Database isn\'t ready or populated yet');
}
+ echo L10n::t('Check for pending update actions.') . "\n";
+ Update::run($a->getBasePath(), true, true, false);
+ echo L10n::t('Done.') . "\n";
+
echo L10n::t('Execute pending post updates.') . "\n";
while (!\Friendica\Database\PostUpdate::update()) {