Add option to modify HTTP pool size
[akkoma] / priv / repo / migrations / 20170418200143_create_webssub_server_subscription.exs
index fe2fa230414a0cb7d78f7924e3e8cf6a3700b824..3d94e4ee74242d04011e8ccf40ab38200f443db3 100644 (file)
@@ -2,12 +2,12 @@ defmodule Pleroma.Repo.Migrations.CreateWebsubServerSubscription do
   use Ecto.Migration
 
   def change do
-    create table(:websub_server_subscriptions) do
-      add :topic, :string
-      add :callback, :string
-      add :secret, :string
-      add :valid_until, :naive_datetime
-      add :state, :string
+    create_if_not_exists table(:websub_server_subscriptions) do
+      add(:topic, :string)
+      add(:callback, :string)
+      add(:secret, :string)
+      add(:valid_until, :naive_datetime)
+      add(:state, :string)
 
       timestamps()
     end