Merge remote-tracking branch 'remotes/origin/develop' into twitter_oauth

This commit is contained in:
Ivan Tashkinov 2019-03-27 15:41:40 +03:00
commit 20e0f36605
294 changed files with 1033 additions and 380 deletions

View file

@ -5,7 +5,7 @@ defmodule Pleroma.Repo.Migrations.CreateWebsubClientSubscription do
create table(:websub_client_subscriptions) do
add :topic, :string
add :secret, :string
add :valid_until, :naive_datetime
add :valid_until, :naive_datetime_usec
add :state, :string
add :subscribers, :map

View file

@ -6,7 +6,7 @@ defmodule Pleroma.Repo.Migrations.CreateOAuthAuthorizations do
add :app_id, references(:apps)
add :user_id, references(:users)
add :token, :string
add :valid_until, :naive_datetime
add :valid_until, :naive_datetime_usec
add :used, :boolean, default: false
timestamps()

View file

@ -7,7 +7,7 @@ defmodule Pleroma.Repo.Migrations.CreateOAuthToken do
add :user_id, references(:users)
add :token, :string
add :refresh_token, :string
add :valid_until, :naive_datetime
add :valid_until, :naive_datetime_usec
timestamps()
end

View file

@ -8,7 +8,7 @@ defmodule Pleroma.Repo.Migrations.CreateFilters do
add :hide, :boolean
add :phrase, :string
add :context, {:array, :string}
add :expires_at, :datetime
add :expires_at, :utc_datetime
add :whole_word, :boolean
timestamps()

View file

@ -3,7 +3,7 @@ defmodule Pleroma.Repo.Migrations.UsersAddLastRefreshedAt do
def change do
alter table(:users) do
add :last_refreshed_at, :naive_datetime
add :last_refreshed_at, :naive_datetime_usec
end
end
end

View file

@ -4,7 +4,7 @@ defmodule Pleroma.Repo.Migrations.CreateInstances do
def change do
create table(:instances) do
add :host, :string
add :unreachable_since, :naive_datetime
add :unreachable_since, :naive_datetime_usec
timestamps()
end

View file

@ -0,0 +1,7 @@
defmodule Pleroma.Repo.Migrations.CreateNotificationIdIndex do
use Ecto.Migration
def change do
create index(:notifications, ["id desc nulls last"])
end
end