]> git.mxchange.org Git - friendica.git/blob - include/dbupdate.php
21528c5730bf4affd04bbfc79c496f0507994373
[friendica.git] / include / dbupdate.php
1 <?php
2
3 use \Friendica\Core\Config;
4
5 function dbupdate_run(&$argv, &$argc) {
6         global $a;
7
8         // We are deleting the latest dbupdate entry.
9         // This is done to avoid endless loops because the update was interupted.
10         Config::delete('database','dbupdate_'.DB_UPDATE_VERSION);
11
12         update_db($a);
13 }