... | ... |
@@ -326,7 +326,7 @@ sqlite_request "create table if not exists setxml ( |
326 | 326 |
$(for col in ${!data[@]}; do printf "'%s' %s, " $col ${data[$col]}; done) |
327 | 327 |
installed integer)" |
328 | 328 |
|
329 |
-latest_revision=$(sqlite_request "select max(revision) from aircrafts") |
|
329 |
+latest_revision=$(( $(sqlite_request "select max(revision) from aircrafts") + 1 )) |
|
330 | 330 |
|
331 | 331 |
# for debugging purpose |
332 | 332 |
if test -n "$2"; then |