projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'remotes/origin/develop' into 1560-non-federating-instan...
[akkoma]
/
priv
/
repo
/
migrations
/
20190518032627_create_config.exs
diff --git
a/priv/repo/migrations/20190518032627_create_config.exs
b/priv/repo/migrations/20190518032627_create_config.exs
index 1e4e3c6892a5adcc139c9dd05f9d553e3b97aee0..cb65f3939c20d115883f4aaac83f06176869767b 100644
(file)
--- a/
priv/repo/migrations/20190518032627_create_config.exs
+++ b/
priv/repo/migrations/20190518032627_create_config.exs
@@
-2,12
+2,12
@@
defmodule Pleroma.Repo.Migrations.CreateConfig do
use Ecto.Migration
def change do
use Ecto.Migration
def change do
- create table(:config) do
+ create
_if_not_exists
table(:config) do
add(:key, :string)
add(:value, :binary)
timestamps()
end
add(:key, :string)
add(:value, :binary)
timestamps()
end
- create(unique_index(:config, :key))
+ create
_if_not_exists
(unique_index(:config, :key))
end
end
end
end