mirror of
https://github.com/plausible/analytics.git
synced 2024-11-30 00:58:54 +03:00
18 lines
468 B
Elixir
18 lines
468 B
Elixir
defmodule Plausible.Repo.Migrations.CreateGoogleSearchConsoleIntegration do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:google_auth) do
|
|
add :user_id, references(:users), null: false
|
|
add :email, :string, null: false
|
|
add :refresh_token, :string, null: false
|
|
add :access_token, :string, null: false
|
|
add :expires, :naive_datetime, null: false
|
|
|
|
timestamps()
|
|
end
|
|
|
|
create unique_index(:google_auth, :user_id)
|
|
end
|
|
end
|