]> git.mxchange.org Git - friendica.git/blob - include/dbupdate.php
was a bit confusing for me or I was not sleeping to much ...
[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 }