fixup (NotesDatabase - JavaScript)

Runs the Fixup task on a database.

Defined in

NotesDatabase

Syntax

fixup() : void

fixup(options:int) : void

Parameter Description
options One or more of the following. Add options to combine them.
  • NotesDatabase.FIXUP_INCREMENTAL 4 checks only documents since last Fixup.
  • NotesDatabase.FIXUP_NODELETE 16 prevents Fixup from deleting corrupted documents.
  • NotesDatabase.FIXUP_NOVIEWS 64 does not check views.
  • NotesDatabase.FIXUP_QUICK 2 checks documents more quickly but less thoroughly.
  • NotesDatabase.FIXUP_REVERT 32 reverts ID tables to the previous release format.
  • NotesDatabase.FIXUP_TXLOGGED 8 includes databases enabled for transaction logging.
  • NotesDatabase.FIXUP_VERIFY 1 makes no modifications.

Examples

This button runs the Fixup task on all the databases in the local directory.
var dbdir:NotesDbDirectory = session.getDbDirectory("");
var db:NotesDatabase = dbdir.getFirstDatabase(NotesDbDirectory.DATABASE);
requestScope.status = "Fixup local databases";
while (db != null) {
	if (db.open()) {
		requestScope.status += "\nFixing " + db.getFileName();
		db.fixup(NotesDatabase.FIXUP_QUICK + 
		NotesDatabase.FIXUP_INCREMENTAL + NotesDatabase.FIXUP_NOVIEWS);
		db = dbdir.getNextDatabase();
	}
}