]> git.mxchange.org Git - friendica.git/blob - include/dbupdate.php
725eca737045865d85ff2ec2ecf55ecbad250b68
[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 }