-
Notifications
You must be signed in to change notification settings - Fork 411
Database
The user database is called saveddata.db
and is located in the pyfa save directory.
- Windows:
%userprofile%\.pyfa\saveddata.db
- Linux/OSX:
~/.pyfa/saveddata.db
This file contains everything from fits to characters to projection mappings and then some. Also note that pyfa supports setting the save path to the root pyfa installation directory (with the -r
flag) or to a custom location (with the -s
flag). Please keep this in mind if you cannot find your database file.
Every now and then, pyfa makes an update which requires and update to the user database schema. We handle these updates via a simple migration path, which compares the user database version to the current pyfa database version - if user version is less than pyfa's, then pyfa runs a series of migration scripts.
These scripts are the things that modify the database. Before migration takes place, however, the user database is backed up. The database backup following the following naming convention:
saveddata_migration_<from-version>-<to-version>_<date>_<time>.db
Note that the versions are the database versions, not pyfa versions. If you run into issue with an upgrade and want to downgrade until issue is resolved, simply delete saveddata.db
and rename the latest migration backup to saveddata.db
, and then downgrade to the previous pyfa version.
Migration backups tend to accumulate after a while, and pyfa does not delete these. However, if you have a stable environment and do not need the migration backups, feel free to delete them.