modify the migrations to use naive_datetime_usec
This commit is contained in:
parent
cbc4a76b43
commit
e59cfa7cac
@ -5,7 +5,7 @@ defmodule Pleroma.Repo.Migrations.CreateWebsubClientSubscription do
|
|||||||
create table(:websub_client_subscriptions) do
|
create table(:websub_client_subscriptions) do
|
||||||
add :topic, :string
|
add :topic, :string
|
||||||
add :secret, :string
|
add :secret, :string
|
||||||
add :valid_until, :naive_datetime
|
add :valid_until, :naive_datetime_usec
|
||||||
add :state, :string
|
add :state, :string
|
||||||
add :subscribers, :map
|
add :subscribers, :map
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ defmodule Pleroma.Repo.Migrations.CreateOAuthAuthorizations do
|
|||||||
add :app_id, references(:apps)
|
add :app_id, references(:apps)
|
||||||
add :user_id, references(:users)
|
add :user_id, references(:users)
|
||||||
add :token, :string
|
add :token, :string
|
||||||
add :valid_until, :naive_datetime
|
add :valid_until, :naive_datetime_usec
|
||||||
add :used, :boolean, default: false
|
add :used, :boolean, default: false
|
||||||
|
|
||||||
timestamps()
|
timestamps()
|
||||||
|
@ -7,7 +7,7 @@ defmodule Pleroma.Repo.Migrations.CreateOAuthToken do
|
|||||||
add :user_id, references(:users)
|
add :user_id, references(:users)
|
||||||
add :token, :string
|
add :token, :string
|
||||||
add :refresh_token, :string
|
add :refresh_token, :string
|
||||||
add :valid_until, :naive_datetime
|
add :valid_until, :naive_datetime_usec
|
||||||
|
|
||||||
timestamps()
|
timestamps()
|
||||||
end
|
end
|
||||||
|
@ -3,7 +3,7 @@ defmodule Pleroma.Repo.Migrations.UsersAddLastRefreshedAt do
|
|||||||
|
|
||||||
def change do
|
def change do
|
||||||
alter table(:users) do
|
alter table(:users) do
|
||||||
add :last_refreshed_at, :naive_datetime
|
add :last_refreshed_at, :naive_datetime_usec
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -4,7 +4,7 @@ defmodule Pleroma.Repo.Migrations.CreateInstances do
|
|||||||
def change do
|
def change do
|
||||||
create table(:instances) do
|
create table(:instances) do
|
||||||
add :host, :string
|
add :host, :string
|
||||||
add :unreachable_since, :naive_datetime
|
add :unreachable_since, :naive_datetime_usec
|
||||||
|
|
||||||
timestamps()
|
timestamps()
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user