]> git.mxchange.org Git - friendica.git/blob - util/db_update.php
Merge pull request #2185 from tobiasd/20151214-translations
[friendica.git] / util / db_update.php
1 <?php
2 /**
3 * @package util
4 */
5
6 /* 
7 * require boot.php
8 */
9 require_once("boot.php");
10
11 $a = new App;
12 @include(".htconfig.php");
13
14 $lang = get_browser_language();
15 load_translation_table($lang);
16
17 require_once("include/dba.php");
18 $db = new dba($db_host, $db_user, $db_pass, $db_data, false);
19         unset($db_host, $db_user, $db_pass, $db_data);
20
21 $build = get_config('system','build');
22
23 echo "Old DB VERSION: " . $build . "\n";
24 echo "New DB VERSION: " . DB_UPDATE_VERSION . "\n";
25
26
27 if($build != DB_UPDATE_VERSION) {
28         echo "Updating database...";
29         check_db($a);
30         echo "Done\n";
31 }
32