X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=priv%2Frepo%2Fmigrations%2F20170906152508_create_o_auth_token.exs;h=08471bbf8b4a6d0495ee05c2ac3105ee91c72188;hb=1fba66178dd174b96e4531b59d134a62b9013e87;hp=ed56bbf364ed93bbbb8b129e49a468bd2d2224fc;hpb=a32bcab04bed54984b76dc9ad59dd02e41f1e04d;p=akkoma diff --git a/priv/repo/migrations/20170906152508_create_o_auth_token.exs b/priv/repo/migrations/20170906152508_create_o_auth_token.exs index ed56bbf36..08471bbf8 100644 --- a/priv/repo/migrations/20170906152508_create_o_auth_token.exs +++ b/priv/repo/migrations/20170906152508_create_o_auth_token.exs @@ -2,7 +2,7 @@ defmodule Pleroma.Repo.Migrations.CreateOAuthToken do use Ecto.Migration def change do - create table(:oauth_tokens) do + create_if_not_exists table(:oauth_tokens) do add :app_id, references(:apps) add :user_id, references(:users) add :token, :string