Skip to content

Commit

Permalink
Update README migration instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
v0idpwn committed Nov 23, 2023
1 parent 37d7055 commit cca2e61
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down

0 comments on commit cca2e61

Please sign in to comment.