X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=priv%2Frepo%2Fmigrations%2F20170906143140_create_o_auth_authorizations.exs;h=63b25c53722c4775cbde6f9231f5ce35d88f4123;hb=3b05f834f4987fea4c7a48045105a24e6b1765a4;hp=ead1d023e06f9bf0de991bb9e58f4d27e5908ccd;hpb=b92a16aa006dd7ec26397b6fcd111c8f8f843a9c;p=akkoma diff --git a/priv/repo/migrations/20170906143140_create_o_auth_authorizations.exs b/priv/repo/migrations/20170906143140_create_o_auth_authorizations.exs index ead1d023e..63b25c537 100644 --- a/priv/repo/migrations/20170906143140_create_o_auth_authorizations.exs +++ b/priv/repo/migrations/20170906143140_create_o_auth_authorizations.exs @@ -2,7 +2,7 @@ defmodule Pleroma.Repo.Migrations.CreateOAuthAuthorizations do use Ecto.Migration def change do - create table(:oauth_authorizations) do + create_if_not_exists table(:oauth_authorizations) do add :app_id, references(:apps) add :user_id, references(:users) add :token, :string