From afadc30329950f319b02b234db9199c102168d32 Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Tue, 13 Jun 2023 14:49:00 +0200 Subject: [PATCH] Update adm-upgrade.md --- docs/adm-upgrade.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/adm-upgrade.md b/docs/adm-upgrade.md index 57270ed..2ac39ee 100644 --- a/docs/adm-upgrade.md +++ b/docs/adm-upgrade.md @@ -16,13 +16,13 @@ in case the database needs to be migrated. In case of sqlite this means to stop `cc-backend` and copy the sqlite databse file somewhere. # Migrating the database -After backing up the database execute the the following command to migrate the +After doing a database backup execute the following command to migrate the databse to the most recent version: ``` $ ./cc-backend -migrate-db ``` -The migration files are embedded into the binary but can be reviewed in the +The migration files are embedded into the binary and can also be reviewed in the cc-backend [source tree](https://github.com/ClusterCockpit/cc-backend/tree/master/internal/repository/migrations). There are separate migration files for both supported database backends. We use the [migrate library](https://github.com/golang-migrate/migrate).