From 6113bb3dc8ba9014e17e08794568b3f47efc6a1c Mon Sep 17 00:00:00 2001 From: Mathieu Pierfitte Date: Wed, 9 Feb 2022 14:13:45 +0100 Subject: [PATCH] Improve migration guidelines --- docs/pages/docs/Advanced Features/migrations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pages/docs/Advanced Features/migrations.md b/docs/pages/docs/Advanced Features/migrations.md index d76d67a3..d3e6429e 100644 --- a/docs/pages/docs/Advanced Features/migrations.md +++ b/docs/pages/docs/Advanced Features/migrations.md @@ -36,11 +36,11 @@ We can now change the `database` class like this: }, onUpgrade: (Migrator m, int from, int to) async { if (from < 2) { - // we added the dueDate property in the change from version 1 + // we added the dueDate property in the change from version 1 to version 2 await m.addColumn(todos, todos.dueDate); } if (from < 3) { - // we added the priority property in the change from version 2 + // we added the priority property in the change from versions 1 or 2 to version 3 await m.addColumn(todos, todos.priority); } }