Detail backup states

This commit is contained in:
tusooa 2022-12-16 02:56:32 -05:00
commit e4ac2a7cd6
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
5 changed files with 166 additions and 29 deletions

View file

@ -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