summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorHaelwenn <contact+git.pleroma.social@hacktivis.me>2023-06-27 12:08:11 +0000
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>2023-06-27 12:08:11 +0000
commit41f2ee69a84178b83eb045145de72728208d399b (patch)
tree5473eca0ff7b1b1e3e6751b7081a10fd6358e0a9 /priv
parent4e26fbda082f52bbb2a7db634744978fb4586a6b (diff)
parent179efd94677d1d30bdbbbbaafc899c8c908181d2 (diff)
Merge branch 'from/upstream-develop/tusooa/backup-status' into 'develop'
Detail backup states Closes #3024 See merge request pleroma/pleroma!3809
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20221216052127_add_state_to_backups.exs21
1 files changed, 21 insertions, 0 deletions
diff --git a/priv/repo/migrations/20221216052127_add_state_to_backups.exs b/priv/repo/migrations/20221216052127_add_state_to_backups.exs
new file mode 100644
index 000000000..73b30fc35
--- /dev/null
+++ b/priv/repo/migrations/20221216052127_add_state_to_backups.exs
@@ -0,0 +1,21 @@
+# 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.AddStateToBackups do
+ use Ecto.Migration
+
+ def up do
+ alter table(:backups) do
+ add(:state, :integer, default: 5)
+ add(:processed_number, :integer, default: 0)
+ end
+ end
+
+ def down do
+ alter table(:backups) do
+ remove(:state)
+ remove(:processed_number)
+ end
+ end
+end