Fossil SCM
Corrected a JSON-mode result code when db rebuild is required.
Commit
44644d43dc946ef139b691408686753f49df7a36
Parent
f48b687a9a1ac02…
1 file changed
+1
M
src/db.c
+1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -953,10 +953,11 @@ | ||
| 953 | 953 | ** Verify that the repository schema is correct. If it is not correct, |
| 954 | 954 | ** issue a fatal error and die. |
| 955 | 955 | */ |
| 956 | 956 | void db_verify_schema(void){ |
| 957 | 957 | if( db_schema_is_outofdate() ){ |
| 958 | + g.json.resultCode = FSL_JSON_E_DB_NEEDS_REBUILD; | |
| 958 | 959 | fossil_warning("incorrect repository schema version"); |
| 959 | 960 | fossil_warning("your repository has schema version \"%s\" " |
| 960 | 961 | "but this binary expects version \"%s\"", |
| 961 | 962 | db_get("aux-schema",0), AUX_SCHEMA); |
| 962 | 963 | fossil_fatal("run \"fossil rebuild\" to fix this problem"); |
| 963 | 964 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -953,10 +953,11 @@ | |
| 953 | ** Verify that the repository schema is correct. If it is not correct, |
| 954 | ** issue a fatal error and die. |
| 955 | */ |
| 956 | void db_verify_schema(void){ |
| 957 | if( db_schema_is_outofdate() ){ |
| 958 | fossil_warning("incorrect repository schema version"); |
| 959 | fossil_warning("your repository has schema version \"%s\" " |
| 960 | "but this binary expects version \"%s\"", |
| 961 | db_get("aux-schema",0), AUX_SCHEMA); |
| 962 | fossil_fatal("run \"fossil rebuild\" to fix this problem"); |
| 963 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -953,10 +953,11 @@ | |
| 953 | ** Verify that the repository schema is correct. If it is not correct, |
| 954 | ** issue a fatal error and die. |
| 955 | */ |
| 956 | void db_verify_schema(void){ |
| 957 | if( db_schema_is_outofdate() ){ |
| 958 | g.json.resultCode = FSL_JSON_E_DB_NEEDS_REBUILD; |
| 959 | fossil_warning("incorrect repository schema version"); |
| 960 | fossil_warning("your repository has schema version \"%s\" " |
| 961 | "but this binary expects version \"%s\"", |
| 962 | db_get("aux-schema",0), AUX_SCHEMA); |
| 963 | fossil_fatal("run \"fossil rebuild\" to fix this problem"); |
| 964 |