summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20190518032627_create_config.exs
blob: cb65f3939c20d115883f4aaac83f06176869767b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
defmodule Pleroma.Repo.Migrations.CreateConfig do
  use Ecto.Migration

  def change do
    create_if_not_exists table(:config) do
      add(:key, :string)
      add(:value, :binary)
      timestamps()
    end

    create_if_not_exists(unique_index(:config, :key))
  end
end