InitialVersions and lastVersions determine the number of versions that will be kept in the database.
Set initialVersions and lastVersions to a value different than 0 to enable versioning.
If you set initialVersions = 2 and lastVersions = 5, and then modify an object 10 times, you'll have 7 object versions (the first 2 and the last 5), losing the middle 3 versions of the object.
You can keep all the versions by specifying a negative value for InitialVersions and/or LastVersions.
See also