projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' into admin-be
[akkoma]
/
priv
/
repo
/
migrations
/
20190205114625_create_thread_mutes.exs
diff --git
a/priv/repo/migrations/20190205114625_create_thread_mutes.exs
b/priv/repo/migrations/20190205114625_create_thread_mutes.exs
index 7e44db1214ab8ebefb4cadbed85fb4d68f2fa472..df9eb7677b5419d8909d9eb146055ec213131d24 100644
(file)
--- a/
priv/repo/migrations/20190205114625_create_thread_mutes.exs
+++ b/
priv/repo/migrations/20190205114625_create_thread_mutes.exs
@@
-3,10
+3,10
@@
defmodule Pleroma.Repo.Migrations.CreateThreadMutes do
def change do
create_if_not_exists table(:thread_mutes) do
def change do
create_if_not_exists table(:thread_mutes) do
- add
:user_id, references(:users, type: :uuid, on_delete: :delete_all
)
- add
:context, :string
+ add
(:user_id, references(:users, type: :uuid, on_delete: :delete_all)
)
+ add
(:context, :string)
end
end
-
- create_if_not_exists
unique_index(:thread_mutes, [:user_id, :context], name: :unique_index
)
+
+ create_if_not_exists
(unique_index(:thread_mutes, [:user_id, :context], name: :unique_index)
)
end
end
end
end