Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README migration instructions #14

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading