Merge develop
[akkoma] / priv / repo / migrations / 20170426154155_create_websub_client_subscription.exs
index f427828409368b4ae4303072edb9b936db85db07..4b79d7506203ef15067a1dfa47d32d72458e568c 100644 (file)
@@ -2,10 +2,10 @@ defmodule Pleroma.Repo.Migrations.CreateWebsubClientSubscription do
   use Ecto.Migration
 
   def change do
-    create table(:websub_client_subscriptions) do
+    create_if_not_exists table(:websub_client_subscriptions) do
       add :topic, :string
       add :secret, :string
-      add :valid_until, :naive_datetime
+      add :valid_until, :naive_datetime_usec
       add :state, :string
       add :subscribers, :map