Normandy.Behaviours.MemoryStore.Postgres.Migration (normandy v2.2.0)

View Source

Migration for the Postgres MemoryStore. Call from a host migration:

defmodule MyApp.Repo.Migrations.AddNormandyMemory do
  use Ecto.Migration
  def up, do: Normandy.Behaviours.MemoryStore.Postgres.Migration.up()
  def down, do: Normandy.Behaviours.MemoryStore.Postgres.Migration.down()
end

Summary

Functions

Drops normandy_memory_namespaces and normandy_memory_documents.

Creates normandy_memory_documents (primary key namespace and path; content, version, updated_at) and normandy_memory_namespaces (namespace, and the bytes and documents counters that put/6 checks its limits against).

Functions

down()

Drops normandy_memory_namespaces and normandy_memory_documents.

up()

Creates normandy_memory_documents (primary key namespace and path; content, version, updated_at) and normandy_memory_namespaces (namespace, and the bytes and documents counters that put/6 checks its limits against).