Merge develop
[akkoma] / priv / repo / migrations / 20190518032627_create_config.exs
index 1e4e3c6892a5adcc139c9dd05f9d553e3b97aee0..cb65f3939c20d115883f4aaac83f06176869767b 100644 (file)
@@ -2,12 +2,12 @@ defmodule Pleroma.Repo.Migrations.CreateConfig 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
 
-    create(unique_index(:config, :key))
+    create_if_not_exists(unique_index(:config, :key))
   end
 end