Sourced.EventStore.Postgres.Migrations (sourced_postgres v0.1.0)

Copy Markdown View Source

Migration creating the tables and triggers the event store reads and writes.

Generate a migration in the host application and delegate to this module:

defmodule MyApp.Repo.Migrations.AddSourced do
  use Ecto.Migration

  defdelegate up, to: Sourced.EventStore.Postgres.Migrations
  defdelegate down, to: Sourced.EventStore.Postgres.Migrations
end

Summary

Functions

down()

up()