20240622175346_backup_refactor.exs (389B)
- defmodule Pleroma.Repo.Migrations.BackupRefactor do
- use Ecto.Migration
- def up do
- alter table("backups") do
- remove(:state)
- remove(:processed_number)
- add(:tempdir, :string)
- end
- end
- def down do
- alter table("backups") do
- add(:state, :integer, default: 5)
- add(:processed_number, :integer, default: 0)
- remove(:tempdir)
- end
- end
- end