projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'bugfix/incoming-poll-emoji' into 'develop'
[akkoma]
/
priv
/
repo
/
migrations
/
20170321074828_create_activity.exs
diff --git
a/priv/repo/migrations/20170321074828_create_activity.exs
b/priv/repo/migrations/20170321074828_create_activity.exs
index 6e875ae43f866762e8301fca7d8d149a0386875d..ab00a47c3bb9e6aaeee1c15ac0a5bbe6938a5196 100644
(file)
--- a/
priv/repo/migrations/20170321074828_create_activity.exs
+++ b/
priv/repo/migrations/20170321074828_create_activity.exs
@@
-2,13
+2,12
@@
defmodule Pleroma.Repo.Migrations.CreatePleroma.Activity do
use Ecto.Migration
def change do
use Ecto.Migration
def change do
- create table(:activities) do
- add
:data, :map
+ create
_if_not_exists
table(:activities) do
+ add
(:data, :map)
timestamps()
end
timestamps()
end
- create index(:activities, [:data], using: :gin)
-
+ create_if_not_exists(index(:activities, [:data], using: :gin))
end
end
end
end