summaryrefslogtreecommitdiff
path: root/lib/mix/tasks/pleroma/database.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mix/tasks/pleroma/database.ex')
-rw-r--r--lib/mix/tasks/pleroma/database.ex23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/mix/tasks/pleroma/database.ex b/lib/mix/tasks/pleroma/database.ex
index a973beaa9..a87c2c2e6 100644
--- a/lib/mix/tasks/pleroma/database.ex
+++ b/lib/mix/tasks/pleroma/database.ex
@@ -20,29 +20,6 @@ defmodule Mix.Tasks.Pleroma.Database do
@shortdoc "A collection of database related tasks"
@moduledoc File.read!("docs/administration/CLI_tasks/database.md")
- def run(["remove_embedded_objects" | args]) do
- {options, [], []} =
- OptionParser.parse(
- args,
- strict: [
- vacuum: :boolean
- ]
- )
-
- start_pleroma()
- Logger.info("Removing embedded objects")
-
- Repo.query!(
- "update activities set data = safe_jsonb_set(data, '{object}'::text[], data->'object'->'id') where data->'object'->>'id' is not null;",
- [],
- timeout: :infinity
- )
-
- if Keyword.get(options, :vacuum) do
- Maintenance.vacuum("full")
- end
- end
-
def run(["bump_all_conversations"]) do
start_pleroma()
Conversation.bump_for_all_activities()