diff options
| author | lain <lain@soykaf.club> | 2019-10-10 12:38:51 +0000 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2019-10-10 12:38:51 +0000 |
| commit | d7f9679ff2c9c4bd2b9967d7a32b5a4fe145305e (patch) | |
| tree | f99394ee5d40b8c1bff6301acd683e13dc23edc8 /priv/repo/migrations/20190303120636_update_user_note_counters.exs | |
| parent | 6c278cfe09fb9fd5220743d8f69c6e232623a09b (diff) | |
| parent | 9fd5176c35d21846fb8368ea7bc0285f9cd74ad4 (diff) | |
| download | pleroma-d7f9679ff2c9c4bd2b9967d7a32b5a4fe145305e.tar.gz pleroma-d7f9679ff2c9c4bd2b9967d7a32b5a4fe145305e.zip | |
Merge branch 'develop' into 'reactions'
# Conflicts:
# CHANGELOG.md
Diffstat (limited to 'priv/repo/migrations/20190303120636_update_user_note_counters.exs')
| -rw-r--r-- | priv/repo/migrations/20190303120636_update_user_note_counters.exs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/priv/repo/migrations/20190303120636_update_user_note_counters.exs b/priv/repo/migrations/20190303120636_update_user_note_counters.exs index 54e68f7c9..95dbd012f 100644 --- a/priv/repo/migrations/20190303120636_update_user_note_counters.exs +++ b/priv/repo/migrations/20190303120636_update_user_note_counters.exs @@ -4,7 +4,7 @@ defmodule Pleroma.Repo.Migrations.UpdateUserNoteCounters do @public "https://www.w3.org/ns/activitystreams#Public" def up do - execute """ + execute(""" WITH public_note_count AS ( SELECT data->>'actor' AS actor, @@ -19,11 +19,11 @@ defmodule Pleroma.Repo.Migrations.UpdateUserNoteCounters do SET "info" = jsonb_set(u.info, '{note_count}', o.count::varchar::jsonb, true) FROM public_note_count AS o WHERE u.ap_id = o.actor - """ + """) end def down do - execute """ + execute(""" WITH public_note_count AS ( SELECT data->>'actor' AS actor, @@ -36,6 +36,6 @@ defmodule Pleroma.Repo.Migrations.UpdateUserNoteCounters do SET "info" = jsonb_set(u.info, '{note_count}', o.count::varchar::jsonb, true) FROM public_note_count AS o WHERE u.ap_id = o.actor - """ + """) end end |
