diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2019-11-04 20:24:53 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2019-11-04 20:24:53 +0300 |
commit | ff6c727739484df31335d2675fbd2446cc5435e1 (patch) | |
tree | 165d76253331566af22476d80dd44b7e2bb6013d /priv | |
parent | 57995fa8cf26c9d5cd31969b59dbafb9f8c8fdc7 (diff) | |
parent | fee127696308dbec9cff6b2a9b399cf2877cf445 (diff) | |
download | pleroma-ff6c727739484df31335d2675fbd2446cc5435e1.tar.gz |
Merge branch 'develop' into issue/1276
Diffstat (limited to 'priv')
-rw-r--r-- | priv/repo/migrations/20190414125034_migrate_old_bookmarks.exs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/priv/repo/migrations/20190414125034_migrate_old_bookmarks.exs b/priv/repo/migrations/20190414125034_migrate_old_bookmarks.exs index f3928a149..99102117f 100644 --- a/priv/repo/migrations/20190414125034_migrate_old_bookmarks.exs +++ b/priv/repo/migrations/20190414125034_migrate_old_bookmarks.exs @@ -8,10 +8,10 @@ defmodule Pleroma.Repo.Migrations.MigrateOldBookmarks do def up do query = - from(u in User, + from(u in "users", where: u.local == true, - where: fragment("array_length(bookmarks, 1)") > 0, - select: %{id: u.id, bookmarks: fragment("bookmarks")} + where: fragment("array_length(?, 1)", u.bookmarks) > 0, + select: %{id: u.id, bookmarks: u.bookmarks} ) Repo.stream(query) |