diff --git a/userguide/database-migration/includes/how-to-upgrade-plugin-database.adoc b/userguide/database-migration/includes/how-to-upgrade-plugin-database.adoc index a5928aea6..9e8de3fa5 100644 --- a/userguide/database-migration/includes/how-to-upgrade-plugin-database.adoc +++ b/userguide/database-migration/includes/how-to-upgrade-plugin-database.adoc @@ -36,11 +36,11 @@ Execute the SQL scripts obtained above directly on your database. Migrations can also be executed using the Flyway command-line tool. 1. *Install Flyway Command-Line Tool:* - ++ Follow the installation guide here: https://documentation.red-gate.com/fd/quickstart-command-line-184127576.html[Flyway CLI Installation]. 2. *Run the Baseline Command (First-Time Use Only):* - ++ If Flyway is being used the first time, run the `baseline` command to create the `flyway_schema_history` table. + *Command* @@ -57,8 +57,8 @@ flyway -url=jdbc:mysql://127.0.0.1:3306/killbill -user= -password=_schema_history` table manually by running the following SQL statements: +1. *Create the `_schema_history` table manually:* + [source, sql] ---- @@ -102,9 +102,9 @@ insert into _schema_history (installed_rank, version, description, ---- + Ensure that you replace `` with the name of a plugin like `analytics`. -+ -2. *Run a Dry Run (if needed for review before applying migrations):* +2. *Run a Dry Run (if needed for review before applying migrations):* ++ Flyway CLI does not support dryRun directly, but you can use `-outputType=json` to review pending migrations: + *Command* @@ -120,5 +120,5 @@ flyway -url=jdbc:mysql://127.0.0.1:3306/ -user= -password= -password= -user= -password=