summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2023-03-06 21:16:34 +0100
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2023-03-16 09:02:20 +0100
commit9a2523a09a2d9ccf5db12ef648444c51a98ab113 (patch)
tree466825a56d7e20bb56d310b13a0264904252f8bb /priv
parent714bf0cb2332050a3a64c6197dae729cf7de1b95 (diff)
instances: Store some metadata based on NodeInfoinstance-nodeinfo-metadata
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20230306112859_instances_add_metadata.exs14
1 files changed, 14 insertions, 0 deletions
diff --git a/priv/repo/migrations/20230306112859_instances_add_metadata.exs b/priv/repo/migrations/20230306112859_instances_add_metadata.exs
new file mode 100644
index 000000000..898f5220e
--- /dev/null
+++ b/priv/repo/migrations/20230306112859_instances_add_metadata.exs
@@ -0,0 +1,14 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2023 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
+defmodule Pleroma.Repo.Migrations.InstancesAddMetadata do
+ use Ecto.Migration
+
+ def change do
+ alter table(:instances) do
+ add(:metadata, :map)
+ add(:metadata_updated_at, :utc_datetime)
+ end
+ end
+end