Skip to content

Commit 1b61bcd

Browse files
authored
Update README migration instructions (#14)
1 parent 37d7055 commit 1b61bcd

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,15 @@ To go from 1.0.0-rc.1 to 1.0.0-rc.2, an additional migration is needed:
3535
defmodule MyApp.Migrations.BumpKafkaesque do
3636
use Ecto.Migration
3737

38-
def up, do: Kafkaesque.Migrations.up(:v1, :v2)
39-
def down, do: Kafkaesque.Migrations.down(:v2, :v1)
38+
def up do
39+
Kafkaesque.Migrations.up(:v1, :v2)
40+
Kafkaesque.Migrations.up(:v2, :v3)
41+
end
42+
43+
def down do
44+
Kafkaesque.Migrations.down(:v3, :v2)
45+
Kafkaesque.Migrations.down(:v2, :v1)
46+
end
4047
end
4148
```
4249

0 commit comments

Comments
 (0)