diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2013-04-17 12:10:35 +0400 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2013-04-17 12:10:35 +0400 |
| commit | 857efe49e653787f5408fc014ae71efec68494d5 (patch) | |
| tree | 39b29ba94e64854762157d4fb645d3fb1f3d138c /update_daemon2.php | |
| parent | a94379f118d1058c66b1fbb7ba34a27a9999ced9 (diff) | |
add schema checking to feed updating and update script
Diffstat (limited to 'update_daemon2.php')
| -rwxr-xr-x | update_daemon2.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/update_daemon2.php b/update_daemon2.php index 8e1917b6f..77d05be66 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -183,6 +183,10 @@ db_close($link); + if ($schema_version != SCHEMA_VERSION) { + die("Schema version is wrong, please upgrade the database.\n"); + } + while (true) { // Since sleep is interupted by SIGCHLD, we need another way to |