X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=priv%2Frepo%2Fmigrations%2F20170320193800_create_user.exs;h=e5f6ac52ee48a3d7baa5a059025b3c2ab9089722;hb=f3c118ca233169daa6fac92356ef7e76785cbf21;hp=2d2f7fbf02bc2407b65fa6698b17962c87b9dd8b;hpb=66f536ecbadd70fae4b1cc3d8c10792ced221ae0;p=akkoma diff --git a/priv/repo/migrations/20170320193800_create_user.exs b/priv/repo/migrations/20170320193800_create_user.exs index 2d2f7fbf0..e5f6ac52e 100644 --- a/priv/repo/migrations/20170320193800_create_user.exs +++ b/priv/repo/migrations/20170320193800_create_user.exs @@ -2,15 +2,14 @@ defmodule Pleroma.Repo.Migrations.CreatePleroma.User do use Ecto.Migration def change do - create table(:users) do - add :email, :string - add :password_hash, :string - add :name, :string - add :nickname, :string - add :bio, :string + create_if_not_exists table(:users) do + add(:email, :string) + add(:password_hash, :string) + add(:name, :string) + add(:nickname, :string) + add(:bio, :string) timestamps() end - end end