Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni Visciano committed Aug 21, 2021
1 parent cb9ef08 commit dd5a18f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ Good for those who:
> No Ecto, just Postgrex please!
> No down script, we go only up!
Define your ordered list of SQL migrations under `priv/migrations/*.sql` and add `ExqlMigration.Task` to you app supervisor.
Define your ordered list of SQL migrations under `priv/migrations/*.sql` and add `ExqlMigration.Migration` to you app supervisor.
The migration task will execute the `*.sql` scripts not already applied to the target DB.
The execution order follows the scripts filename alphabetic order.

If a migration script fails, the `ExqlMigration.Task` executor stops the application.
If a migration script fails, the `ExqlMigration.Migration` executor stops the application.

## Multi instance deployment safety

Expand All @@ -23,7 +23,7 @@ in a transaction and acquire a `'LOCK ... SHARE MODE'` ensuring that one and onl

## Usage

In your app supervisor, start `Postgrex` and then the `ExqlMigration.Task`.
In your app supervisor, start `Postgrex` and then the `ExqlMigration.Migration`.

```elixir
migrations_dir = "priv/migrations"
Expand Down

0 comments on commit dd5a18f

Please sign in to comment.