projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add emojo
[akkoma]
/
priv
/
repo
/
migrations
/
20180429094642_create_lists.exs
diff --git
a/priv/repo/migrations/20180429094642_create_lists.exs
b/priv/repo/migrations/20180429094642_create_lists.exs
index 64c62250e2502dd00f87147959f29eccfc726d5c..9d3ce50b34d1536117ade4825a38ab78bba110e9 100644
(file)
--- a/
priv/repo/migrations/20180429094642_create_lists.exs
+++ b/
priv/repo/migrations/20180429094642_create_lists.exs
@@
-2,7
+2,7
@@
defmodule Pleroma.Repo.Migrations.CreateLists do
use Ecto.Migration
def change do
use Ecto.Migration
def change do
- create table(:lists) do
+ create
_if_not_exists
table(:lists) do
add :user_id, references(:users, on_delete: :delete_all)
add :title, :string
add :following, {:array, :string}
add :user_id, references(:users, on_delete: :delete_all)
add :title, :string
add :following, {:array, :string}
@@
-10,6
+10,6
@@
defmodule Pleroma.Repo.Migrations.CreateLists do
timestamps()
end
timestamps()
end
- create index(:lists, [:user_id])
+ create
_if_not_exists
index(:lists, [:user_id])
end
end
end
end