Upgrade
On this page
Nightingale versions V6, V7, and V8 have the same upgrade method between their minor versions.
Upgrade Steps
- Backup Data: Before upgrading, back up the MySQL database content, binary files, and the
etc
andintegrations
directories. Having a backup allows you to operate confidently. - If you are using binary deployment, replace the binary files and the
integrations
directory (you can simply move the oldintegrations
directory to a backup location usingmv integrations integrations.bak
, and then use the newintegrations
directory). Compare the new and old configuration files usingdiff
, and manually fill in any differences (in practice, you should rarely need to modify the configuration files, as they have not changed much for a long time). - If you are using container deployment, pull the latest image, compare the configuration files, fill in any differences, and then restart the container.
About Database Table Structure
If the database account used by Nightingale has permissions to create and modify tables, you do not need to manually change the database table structure. Nightingale will automatically check if the table structure needs to be upgraded at startup, and if so, it will modify the tables automatically. If the database account does not have permissions to create or modify tables, you will need to make manual adjustments. Recent changes can be found in migrate.sql. If automatic table modification fails, please submit an issue, and we will follow up as soon as possible.
In theory, the database supports both MySQL and Postgres, but the community lacks long-term contributors for Postgres, so it is recommended to use MySQL first.