db_update.php 355 Bytes
Newer Older
friendica's avatar
friendica committed
1
<?php
friendica's avatar
friendica committed
2 3


4 5 6
/**
* @package util
*/
friendica's avatar
friendica committed
7

friendica's avatar
friendica committed
8 9
require_once('boot.php');
require_once('include/cli_startup.php');
friendica's avatar
friendica committed
10

friendica's avatar
friendica committed
11
cli_startup();
Zot's avatar
Zot committed
12
$build = get_config('system','db_version');
friendica's avatar
friendica committed
13 14 15 16 17 18 19

echo "Old DB VERSION: " . $build . "\n";
echo "New DB VERSION: " . DB_UPDATE_VERSION . "\n";


if($build != DB_UPDATE_VERSION) {
	echo "Updating database...";
Zot's avatar
Zot committed
20
	check_config();
friendica's avatar
friendica committed
21 22 23
	echo "Done\n";
}