projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'linkify' into 'develop'
[akkoma]
/
priv
/
repo
/
migrations
/
20170701142005_add_actor_index_to_activity.exs
diff --git
a/priv/repo/migrations/20170701142005_add_actor_index_to_activity.exs
b/priv/repo/migrations/20170701142005_add_actor_index_to_activity.exs
index 82c64396f3090bcd68b76999e4e793c3d154bc2b..220c48abdb457c430ace465f32e44bc918b43392 100644
(file)
--- a/
priv/repo/migrations/20170701142005_add_actor_index_to_activity.exs
+++ b/
priv/repo/migrations/20170701142005_add_actor_index_to_activity.exs
@@
-2,6
+2,8
@@
defmodule Pleroma.Repo.Migrations.AddActorIndexToActivity do
use Ecto.Migration
def change do
use Ecto.Migration
def change do
- create index(:activities, ["(data->>'actor')", "inserted_at desc"], name: :activities_actor_index)
+ create_if_not_exists(
+ index(:activities, ["(data->>'actor')", "inserted_at desc"], name: :activities_actor_index)
+ )
end
end
end
end