Execute database update before post update is called
This commit is contained in:
parent
6e39b93eb9
commit
109204032c
|
@ -4,6 +4,7 @@ namespace Friendica\Core\Console;
|
||||||
|
|
||||||
use Friendica\Core\L10n;
|
use Friendica\Core\L10n;
|
||||||
use Friendica\Core\Config;
|
use Friendica\Core\Config;
|
||||||
|
use Friendica\Core\Update;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Performs database post updates
|
* Performs database post updates
|
||||||
|
@ -54,6 +55,10 @@ HELP;
|
||||||
throw new \RuntimeException('Database isn\'t ready or populated yet');
|
throw new \RuntimeException('Database isn\'t ready or populated yet');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo L10n::t('Check for pending update actions.') . "\n";
|
||||||
|
Update::run(true, true, false);
|
||||||
|
echo L10n::t('Done.') . "\n";
|
||||||
|
|
||||||
echo L10n::t('Execute pending post updates.') . "\n";
|
echo L10n::t('Execute pending post updates.') . "\n";
|
||||||
|
|
||||||
while (!\Friendica\Database\PostUpdate::update()) {
|
while (!\Friendica\Database\PostUpdate::update()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user