diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-02-23 04:09:39 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-02-23 04:09:39 +0100 |
| commit | be7d35ccbb3449332700a0d9ccb1b055e041e401 (patch) | |
| tree | f0475a748de7ccdcc29eb29a0a4e5cff4dfb96e3 /doc/migration.md | |
| parent | 823c0c6b1c857da62e472a2feda167379691288f (diff) | |
| download | jellything-be7d35ccbb3449332700a0d9ccb1b055e041e401.tar jellything-be7d35ccbb3449332700a0d9ccb1b055e041e401.tar.bz2 jellything-be7d35ccbb3449332700a0d9ccb1b055e041e401.tar.zst | |
update some book things
Diffstat (limited to 'doc/migration.md')
| -rw-r--r-- | doc/migration.md | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/doc/migration.md b/doc/migration.md deleted file mode 100644 index 000072a..0000000 --- a/doc/migration.md +++ /dev/null @@ -1,42 +0,0 @@ -# Migrating the Database - -> [!CAUTION] -> The current architecture for saving to the database will be completely -> rewritten soon. - -With some updates the database serialization for changes. This requires a -migration process. You need to follow this procedure either with every update. - -## 1. Export the database - -Use the `jellytool` of the previous version to export the database to JSON. - -```sh -mv /path/to/db /path/to/db.old # Rename the DB to avoid conflict later -jellytool.old migrate export /path/to/db.old export /tmp/jdb -``` - -## 2. Run migrations on the JSON dump - -> This is not implemented yet. It usually just works without anyway. - -## 3. Import the database - -Now import your library back to where it usually lives using the `jellytool` of -the current version. - -```sh -jellytool migrate export /path/to/db import /tmp/jdb -``` - -## 4. Delete old Databases - -Delete the old database and the JSON dump, they are not required anymore. - -> [!CAUTION] -> Confirm that everything still works and no data is lost before! - -``` -rm /path/to/db.old -rm -r /tmp/jdb -``` |