mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-14 04:52:17 +00:00
19 lines
389 B
Elixir
19 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
|