aboutsummaryrefslogtreecommitdiff
path: root/priv/repo
diff options
context:
space:
mode:
authormarcin mikołajczak <git@mkljczk.pl>2022-06-16 18:12:30 +0200
committermarcin mikołajczak <git@mkljczk.pl>2022-06-16 20:38:37 +0200
commitb0f83aea29be0b25075d19b35d5ff98ef8fbd000 (patch)
tree91dd69197317102562b5b4bc0a701c821cb24d8b /priv/repo
parent75f912c63f9a18e37f8ddbd403755b878467435a (diff)
downloadpleroma-b0f83aea29be0b25075d19b35d5ff98ef8fbd000.tar.gz
Store mutes expiration date
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat (limited to 'priv/repo')
-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..c0594d647
--- /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, :naive_datetime)
+ end
+ end
+end