logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/

20221216052127_add_state_to_backups.exs (497B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.Repo.Migrations.AddStateToBackups do
  5. use Ecto.Migration
  6. def up do
  7. alter table(:backups) do
  8. add(:state, :integer, default: 5)
  9. add(:processed_number, :integer, default: 0)
  10. end
  11. end
  12. def down do
  13. alter table(:backups) do
  14. remove(:state)
  15. remove(:processed_number)
  16. end
  17. end
  18. end