FIX.Session.Store.Postgres.Migrations (fix_session v0.1.3)

Copy Markdown View Source

Creates the tables used by FIX.Session.Store.Postgres.

Call up/1 and down/1 from a migration in the host application:

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

  def up, do: FIX.Session.Store.Postgres.Migrations.up()
  def down, do: FIX.Session.Store.Postgres.Migrations.down()
end

Summary

Functions

Drops the store tables.

Creates the fix_session_sessions and fix_session_outbound tables.

Functions

down(opts \\ [])

@spec down(keyword()) :: :ok

Drops the store tables.

up(opts \\ [])

@spec up(keyword()) :: :ok

Creates the fix_session_sessions and fix_session_outbound tables.