From a0caf234ccb3d399544d400d9f957e46005218d0 Mon Sep 17 00:00:00 2001 From: willckoan <119916943+willckoan@users.noreply.github.com> Date: Fri, 13 Oct 2023 13:55:17 +1300 Subject: [PATCH] Fix grammar issue in Update tests.md --- docs/pages/docs/Migrations/tests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/docs/Migrations/tests.md b/docs/pages/docs/Migrations/tests.md index 78c538ea8..855d483ff 100644 --- a/docs/pages/docs/Migrations/tests.md +++ b/docs/pages/docs/Migrations/tests.md @@ -57,7 +57,7 @@ If it sees anything unexpected, it will throw a `SchemaMismatch` exception to fa {% block "blocks/alert" title="Writing testable migrations" %} To test migrations _towards_ an old schema version (e.g. from `v1` to `v2` if your current version is `v3`), -you're `onUpgrade` handler must be capable of upgrading to a version older than the current `schemaVersion`. +your `onUpgrade` handler must be capable of upgrading to a version older than the current `schemaVersion`. For this, check the `to` parameter of the `onUpgrade` callback to run a different migration if necessary. Or, use [step-by-step migrations]({{ 'step_by_step.md' | pageUrl }}) which do this automatically. {% endblock %}