summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authortusooa <tusooa@kazv.moe>2022-07-23 00:34:15 +0000
committertusooa <tusooa@kazv.moe>2022-07-23 00:34:15 +0000
commit301ce5bc627d91b21c33af73eeb266025cd14728 (patch)
treeb85308ca1611eac60b6ed339d11d5bed450320ab /priv
parent21e587ff1ab2b874a4eb5ca811c6e98c8486b55e (diff)
parent597f56b4c4db3c63ff66fc93717d3b20655e1543 (diff)
Merge branch 'mute-expiration' into 'develop'
MastoAPI: Show mutes expiration date See merge request pleroma/pleroma!3682
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20220616163503_add_expires_at_to_user_relationships.exs13
1 files changed, 13 insertions, 0 deletions
diff --git a/priv/repo/migrations/20220616163503_add_expires_at_to_user_relationships.exs b/priv/repo/migrations/20220616163503_add_expires_at_to_user_relationships.exs
new file mode 100644
index 000000000..9e117e376
--- /dev/null
+++ b/priv/repo/migrations/20220616163503_add_expires_at_to_user_relationships.exs
@@ -0,0 +1,13 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
+defmodule Pleroma.Repo.Migrations.AddExpiresAtToUserRelationships do
+ use Ecto.Migration
+
+ def change do
+ alter table(:user_relationships) do
+ add_if_not_exists(:expires_at, :utc_datetime)
+ end
+ end
+end