X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=priv%2Frepo%2Fmigrations%2F20170502083023_add_local_field_to_activities.exs;h=6b61bd464f3a64f0e96c07d95bdf96476b3d9ad0;hb=dbcfac11b45b367185a3b18a2db3e3fb07e8f20d;hp=088d68f675a60b979b5899781b7991efaccbee68;hpb=b403ea4d2b69cef4434ad68babdfb402d8227847;p=akkoma diff --git a/priv/repo/migrations/20170502083023_add_local_field_to_activities.exs b/priv/repo/migrations/20170502083023_add_local_field_to_activities.exs index 088d68f67..6b61bd464 100644 --- a/priv/repo/migrations/20170502083023_add_local_field_to_activities.exs +++ b/priv/repo/migrations/20170502083023_add_local_field_to_activities.exs @@ -3,9 +3,9 @@ defmodule Pleroma.Repo.Migrations.AddLocalFieldToActivities do def change do alter table(:activities) do - add :local, :boolean, default: true + add(:local, :boolean, default: true) end - create index(:activities, [:local]) + create_if_not_exists(index(:activities, [:local])) end end