Merge branch 'develop' into 'feature/staff-discovery-api'
# Conflicts: # lib/pleroma/web/nodeinfo/nodeinfo_controller.ex
This commit is contained in:
commit
76c67a41c1
16 changed files with 484 additions and 8 deletions
20
priv/repo/migrations/20180813003722_create_filters.exs
Normal file
20
priv/repo/migrations/20180813003722_create_filters.exs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
defmodule Pleroma.Repo.Migrations.CreateFilters do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:filters) do
|
||||
add :user_id, references(:users, on_delete: :delete_all)
|
||||
add :filter_id, :integer
|
||||
add :hide, :boolean
|
||||
add :phrase, :string
|
||||
add :context, {:array, :string}
|
||||
add :expires_at, :datetime
|
||||
add :whole_word, :boolean
|
||||
|
||||
timestamps()
|
||||
end
|
||||
|
||||
create index(:filters, [:user_id])
|
||||
create index(:filters, [:phrase], where: "hide = true", name: :hided_phrases_index)
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue