New 'backups to keep' entry not generated for existing configs #7184
Labels
2.10
Targeting a 2.10.X version release
bug
An issue that needs to be fixed. Alternatively, a PR fixing an issue.
completed
The issue has been fully resolved and the change will be in the next Skript update.
feature-ready
A PR/issue that has been approved, tested and can be merged/closed in the next feature version.
priority: high
Issues with potentially high impact that could be harmful to users.
Skript/Server Version
Bug Description
backups to keep entry is not generated for old configs, leading to a NPE during variable loading and the failure of skript to load variables or parse scripts on startup.
Expected Behavior
At minimum, skript should start normally, using a default value of -1 for the entry if it's missing (this was done for the 2.10.0 beta)
Ideally, the entry should be created for every database entry that's missing them. This has to be done carefully to avoid changing any of the user's database settings.
Steps to Reproduce
start a feature build of skript on a server with a config that includes a database without the backups to keep entry.
Errors or Screenshots
Other
No response
Agreement
The text was updated successfully, but these errors were encountered: