projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Link to docs page instead of to clients.md
[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 16083332b4dfeaaedaf8b699b7bbe1b20684df51..8e9eccbae8b5592ecad540e7c0ea904e9ee465f5 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 table(:thread_mutes) do
def change do
create table(:thread_mutes) do
- add :user, references(:users, type: :uuid, on_delete: :delete_all)
+ add :user
_id
, references(:users, type: :uuid, on_delete: :delete_all)
add :context, :string
end
add :context, :string
end
- create
index(:thread_mutes, [:user]
)
+ create
unique_index(:thread_mutes, [:user_id, :context], name: :unique_index
)
end
end
end
end