logo

pleroma

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

20240622175346_backup_refactor.exs (389B)


  1. defmodule Pleroma.Repo.Migrations.BackupRefactor do
  2. use Ecto.Migration
  3. def up do
  4. alter table("backups") do
  5. remove(:state)
  6. remove(:processed_number)
  7. add(:tempdir, :string)
  8. end
  9. end
  10. def down do
  11. alter table("backups") do
  12. add(:state, :integer, default: 5)
  13. add(:processed_number, :integer, default: 0)
  14. remove(:tempdir)
  15. end
  16. end
  17. end