Merge branch 'pin-chats' into 'develop'
Chats: pin/unpin chats See merge request pleroma/pleroma!3637
This commit is contained in:
commit
ca03d94f52
12 changed files with 191 additions and 17 deletions
11
priv/repo/migrations/20220222203933_add_pinned_to_chats.exs
Normal file
11
priv/repo/migrations/20220222203933_add_pinned_to_chats.exs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
defmodule Pleroma.Repo.Migrations.AddPinnedToChats do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
alter table(:chats) do
|
||||
add(:pinned, :boolean, default: false, null: false)
|
||||
end
|
||||
|
||||
create(index(:chats, [:pinned]))
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue