company logo

DatabaseHandle :: ResetMajorVersion - Reset last version activated

The function will reset the last version activated for the database. It will remove all database entries with the new version and recreates the state of the database as it has been when starting the new version.

Passing a version number (version_nr) allows resetting an older version than the current one. In this case, all versions including version_nr will be reset.

Return value:  Success ( logical  )

Implementation details

logical DatabaseHandle  :: ResetMajorVersion ( uint16 version_nr=CUR_VERSION )
  • version_nr - Database object version number Default: CUR_VERSION