summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-04-18 23:34:01 +0300
committerrinpatch <rinpatch@sdf.org>2019-04-18 23:34:01 +0300
commit099f89367efaf4032b8e937258b2c1a90f16b047 (patch)
treebb4de800b732e8ce9c101a87619e859e8d77bf36 /priv
parent9238dccac1310fc2e281b242768a2de79f405f35 (diff)
downloadpleroma-099f89367efaf4032b8e937258b2c1a90f16b047.tar.gz
pleroma-099f89367efaf4032b8e937258b2c1a90f16b047.zip
Replace embedded object migration with a mix task
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20190418072951_remove_embeded_objects.exs10
1 files changed, 0 insertions, 10 deletions
diff --git a/priv/repo/migrations/20190418072951_remove_embeded_objects.exs b/priv/repo/migrations/20190418072951_remove_embeded_objects.exs
deleted file mode 100644
index 128094278..000000000
--- a/priv/repo/migrations/20190418072951_remove_embeded_objects.exs
+++ /dev/null
@@ -1,10 +0,0 @@
-defmodule Pleroma.Repo.Migrations.RemoveEmbededObjects do
- use Ecto.Migration
-
- # TODO: bench on a real DB and add clippy if it takes too long
- def change do
- execute """
- update activities set data = jsonb_set(data, '{object}'::text[], data->'object'->'id') where data->>'type' = 'Create' and data->'object'->>'id' is not null;
- """
- end
-end