Merge branch 'featrue/job-monitor' into 'develop'
[akkoma] / priv / repo / migrations / 20190325185009_create_notification_id_index.exs
index a6ab38d02a1d3564c0078aa01cdab9fa92d9e4d8..01cb30559e2a517fc135df8c17bf21231c26c522 100644 (file)
@@ -2,6 +2,6 @@ defmodule Pleroma.Repo.Migrations.CreateNotificationIdIndex do
   use Ecto.Migration
 
   def change do
-  create index(:notifications, ["id desc nulls last"])
+    create_if_not_exists index(:notifications, ["id desc nulls last"])
   end
 end