From cca2e6146ceabbfba19b340abb8ca8ef8d7ad3af Mon Sep 17 00:00:00 2001 From: v0idpwn Date: Thu, 23 Nov 2023 02:34:42 -0300 Subject: [PATCH] Update README migration instructions --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bda9732..fc4bd74 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,15 @@ To go from 1.0.0-rc.1 to 1.0.0-rc.2, an additional migration is needed: defmodule MyApp.Migrations.BumpKafkaesque do use Ecto.Migration - def up, do: Kafkaesque.Migrations.up(:v1, :v2) - def down, do: Kafkaesque.Migrations.down(:v2, :v1) + def up do + Kafkaesque.Migrations.up(:v1, :v2) + Kafkaesque.Migrations.up(:v2, :v3) + end + + def down do + Kafkaesque.Migrations.down(:v3, :v2) + Kafkaesque.Migrations.down(:v2, :v1) + end end ```