v0.5.0 #125
masoncfrancis
started this conversation in
Releases
v0.5.0
#125
Replies: 1 comment
|
If you had any issues importing your backup into v0.5.0, upgrade to v0.5.1 and import again |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
v0.5.0 [CONTAINS BREAKING CHANGES]
Upgrade caution: Backup your data before upgrading. See Breaking Changes for important notes.
Breaking Changes
3005:80to3005:3005. (#116)nginx-default.conf,nginx-main.conf) deleted. No reverse proxy between client and server. If you relied on the built-in nginx for TLS, auth, or custom routing, you will need to add your own reverse proxy layer. (#116)./data/db/.db_dialect) recording whether SQLite or PostgreSQL is in use. Switching dialects after first run requires settingFORCE_DB_DIALECT_CHANGE=trueor deleting the lock file.What you need to do
3005:3005.Features
DB_DIALECT=postgreswith aDATABASE_URLor individualDB_*environment variables. Seedocker/postgres.docker-compose.ymlfor a reference setup. (#109)data.json(all records, dialect-agnostic) +uploads/directory. Import performs a wipe-and-replace. Works identically for SQLite and PostgreSQL..dbfiles inside backup ZIPs and converts them automatically. (#121)LOG_CONSOLE(defaulttrue) andLOG_FILEenvironment variables control logging. Colored output with status, duration, method, path, and client IP. (#117)server/openapi.yamlwith additional endpoints (backup, import, attach). (#115)0tag. The docker-image workflow now also tags images asfrancislaboratories/homelogger:0.Bug Fixes
associated_idcolumn onsaved_filestable is automatically dropped during migration if present.PORTenv var accepts bare port numbers (e.g.PORT=3005), not just:3005. (#122)Dependency Upgrades
Added:
gorm.io/driver/postgres v1.6.0,github.com/jackc/pgpassfile,github.com/jackc/pgservicefile,github.com/jackc/puddle/v2,github.com/gofiber/schema v1.8.0,github.com/gofiber/utils/v2 v2.1.1,golang.org/x/crypto,golang.org/x/net,golang.org/x/sync.Migrating from SQLite to PostgreSQL
Backup your existing data. Open Settings → "Download Backup" to get
homelogger-backup.zip.Start a new PostgreSQL instance. Use
docker/postgres.docker-compose.ymlas a reference:Start the server.
Import your backup. Open Settings → "Import Backup" → select your ZIP → confirm. All data is imported to PostgreSQL. (#121)
Alternative: manual import via API
curl -X POST -F "backup=@homelogger-backup.zip" http://localhost:3005/api/backup/importIssues with Upgrade or Migration
If you encounter issues with the upgrade or migration, please create an issue on GitHub, or post in the Discussions section under the new version. Provide as much detail as possible. Please do not share any sensitive data (e.g., your backup ZIP) publicly. If you need to share a backup for debugging, the maintainer may provide a secure way to share it privately.
Notes
Full Changelog: 0.4.4...0.5.0
This discussion was created from the release v0.5.0.
All reactions