projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix linkify ConfigDB migration
[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 9d3ce50b34d1536117ade4825a38ab78bba110e9..e1eb7e4266206d635c8f28c31a9f82fa6e9b4131 100644
(file)
--- a/
priv/repo/migrations/20180429094642_create_lists.exs
+++ b/
priv/repo/migrations/20180429094642_create_lists.exs
@@
-3,13
+3,13
@@
defmodule Pleroma.Repo.Migrations.CreateLists do
def change do
create_if_not_exists table(:lists) do
def change 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})
timestamps()
end
timestamps()
end
- create_if_not_exists
index(:lists, [:user_id]
)
+ create_if_not_exists
(index(:lists, [:user_id])
)
end
end
end
end