Fossil

Check-in [4a2019dd]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make the error message on schema version mismatch less confusing.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 4a2019ddd08c8b63295710d65b9efc40fd478a60
User & Date: joerg 2011-03-24 03:22:12
Context
2011-03-24
13:36
Fix a bug in the compression logic of the tarball generator. check-in: 518ec9dd user: drh tags: trunk
03:22
Make the error message on schema version mismatch less confusing. check-in: 4a2019dd user: joerg tags: trunk
02:08
Remove redundancy from the "fossil rm" command, as pointed out by Carles Pagès. check-in: 7fca0075 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/db.c.

918
919
920
921
922
923
924
925

926
927
928
929
930
931
932
/*
** Verify that the repository schema is correct.  If it is not correct,
** issue a fatal error and die.
*/
void db_verify_schema(void){
  if( db_schema_is_outofdate() ){
    fossil_warning("incorrect repository schema version");
    fossil_warning("you have version \"%s\" but you need version \"%s\"",

          db_get("aux-schema",0), AUX_SCHEMA);
    fossil_fatal("run \"fossil rebuild\" to fix this problem");
  }
}


/*







|
>







918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
/*
** Verify that the repository schema is correct.  If it is not correct,
** issue a fatal error and die.
*/
void db_verify_schema(void){
  if( db_schema_is_outofdate() ){
    fossil_warning("incorrect repository schema version");
    fossil_warning("your repository has schema version \"%s\" "
          "but this binary expects version \"%s\"",
          db_get("aux-schema",0), AUX_SCHEMA);
    fossil_fatal("run \"fossil rebuild\" to fix this problem");
  }
}


/*