blob: bfad98b764e3b25a1daa33b94f183368e11a6858 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
defmodule Pleroma.Repo.Migrations.CreateOAuthToken do
use Ecto.Migration
def change do
create_if_not_exists table(:oauth_tokens) do
add(:app_id, references(:apps))
add(:user_id, references(:users))
add(:token, :string)
add(:refresh_token, :string)
add(:valid_until, :naive_datetime_usec)
timestamps()
end
end
end
|