summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20170906152508_create_o_auth_token.exs
diff options
context:
space:
mode:
authorMaksim <parallel588@gmail.com>2019-07-01 01:08:07 +0000
committerfeld <feld@feld.me>2019-07-01 01:08:07 +0000
commit85c7916c94017c6a3657a3540f1e6c3afcb78225 (patch)
tree3c4d4976b52a135f73e07b0fe68b17aae2681ee1 /priv/repo/migrations/20170906152508_create_o_auth_token.exs
parent66380d36d540751f59445c8a65e9747ce5475ee5 (diff)
downloadpleroma-85c7916c94017c6a3657a3540f1e6c3afcb78225.tar.gz
pleroma-85c7916c94017c6a3657a3540f1e6c3afcb78225.zip
[#1033] Fix database migrations
Diffstat (limited to 'priv/repo/migrations/20170906152508_create_o_auth_token.exs')
-rw-r--r--priv/repo/migrations/20170906152508_create_o_auth_token.exs2
1 files changed, 1 insertions, 1 deletions
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