pleroma/priv/repo/migrations/20240622175346_backup_refactor.exs
2024-07-23 10:30:40 -04:00

20 lines
389 B
Elixir

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