Merge pull request #6118 from annando/update-before-postupdate

Execute database update before post update is called
2022.09-rc
Hypolite Petovan 2018-11-12 07:19:15 -05:00 zatwierdzone przez GitHub
commit f67cf4e63b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -4,6 +4,7 @@ namespace Friendica\Core\Console;
use Friendica\Core\L10n;
use Friendica\Core\Config;
use Friendica\Core\Update;
/**
* Performs database post updates
@ -54,6 +55,10 @@ HELP;
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";
while (!\Friendica\Database\PostUpdate::update()) {