summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-10-11 16:13:13 +0200
committerlain <lain@soykaf.club>2019-10-11 16:13:13 +0200
commit5567c0de52fd95354478c65ad7086ded4eb2b145 (patch)
tree3b604cd888dd3f1bb0e518373188f0a07e45ff89
parent0d7109254b82ffd1b31c6e90ea3fa2a80f9783c0 (diff)
Migrations: Add clippy warning before long migration.
-rw-r--r--priv/repo/migrations/20191007160755_fill_object_ap_id_field.exs3
1 files changed, 3 insertions, 0 deletions
diff --git a/priv/repo/migrations/20191007160755_fill_object_ap_id_field.exs b/priv/repo/migrations/20191007160755_fill_object_ap_id_field.exs
index 81ecc27f7..a6d460625 100644
--- a/priv/repo/migrations/20191007160755_fill_object_ap_id_field.exs
+++ b/priv/repo/migrations/20191007160755_fill_object_ap_id_field.exs
@@ -1,7 +1,10 @@
defmodule Pleroma.Repo.Migrations.FillObjectApIdField do
use Ecto.Migration
+ alias Pleroma.Clippy
def change do
+ Clippy.puts("ATTENTION! This migration might take hours! If you don't want to run it now, abort this with CTRL+C! I'll wait 30 seconds now.")
+ :times.sleep(:timer.seconds(30))
execute("update objects set ap_id = data->>'id'")
create unique_index(:objects, [:ap_id])
end