X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=priv%2Frepo%2Fmigrations%2F20170426154155_create_websub_client_subscription.exs;h=d020614e13d28cf357ccfc381633987a905d80f5;hb=92d3742072f4d8f1b79e142ccba2c558fcb569d9;hp=89d3af7aee5ff7ac67c47c44b50f3fc29213c270;hpb=a32bcab04bed54984b76dc9ad59dd02e41f1e04d;p=akkoma diff --git a/priv/repo/migrations/20170426154155_create_websub_client_subscription.exs b/priv/repo/migrations/20170426154155_create_websub_client_subscription.exs index 89d3af7ae..d020614e1 100644 --- a/priv/repo/migrations/20170426154155_create_websub_client_subscription.exs +++ b/priv/repo/migrations/20170426154155_create_websub_client_subscription.exs @@ -2,12 +2,12 @@ defmodule Pleroma.Repo.Migrations.CreateWebsubClientSubscription do use Ecto.Migration def change do - create table(:websub_client_subscriptions) do - add :topic, :string - add :secret, :string - add :valid_until, :naive_datetime_usec - add :state, :string - add :subscribers, :map + create_if_not_exists table(:websub_client_subscriptions) do + add(:topic, :string) + add(:secret, :string) + add(:valid_until, :naive_datetime_usec) + add(:state, :string) + add(:subscribers, :map) timestamps() end