mirror of
https://github.com/freedit-org/freedit.git
synced 2026-01-08 04:03:58 -05:00
1.3 KiB
1.3 KiB
Upgrade Log
Caution
- You cannot upgrade directly from v0.7.x to v0.9.x. You must first upgrade to v0.8.x, then to v0.9.x.
- Always back up your database before performing an upgrade and stop the running instance of Freedit.
- Please view the upgrade examples in the
examples/directory for more details.- You need to have Rust installed to run the upgrade scripts. Install Rust from here.
Upgrading from v0.8.x to v0.9.x
Why?
Change the underlying database from sled to fjall.
How?
cargo run --example v0_8-v0_9 -- <path to v0.8 db>- Set db path to the new db file in
config.tomlfile. - Replace the old binary with the new binary.
Upgrading from v0.7.x to v0.8.x
Why?
A lot of technical debt has been paid off in v0.8.x, including:
- The following trees have been removed: home_pages, lang, pub_keys, inns_private.All relevant data is now stored on the users tree.
- Support podcast feature.
How?
cargo run --example v0_7-v0_8 -- <path to v0.7 db>- Add
podcast_path = "data/podcasts"andsnapshots_path = "data/snapshots"in config.toml file. - Set db path to the new db file in
config.tomlfile. - Replace the old binary with the new binary.