Merge branch 'feature/mastodon_api_2.4.x' into 'develop'
Add/Fix Mastodon endpoints for 2.4.3 compatibility See merge request pleroma/pleroma!266
This commit is contained in:
commit
1c9e539b47
11 changed files with 435 additions and 5 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