mirror of
https://github.com/plausible/analytics.git
synced 2024-11-27 09:16:25 +03:00
13 lines
303 B
Elixir
13 lines
303 B
Elixir
defmodule Plausible.Repo.Migrations.AssociateGoogleAuthWithSite do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
alter table(:google_auth) do
|
|
add :site_id, references(:sites), null: false
|
|
end
|
|
|
|
drop unique_index(:google_auth, :user_id)
|
|
create unique_index(:google_auth, :site_id)
|
|
end
|
|
end
|