fix(migrations): make Rebased rollback safe

This commit is contained in:
Lain Soykaf 2026-07-29 15:22:01 +04:00
commit 478b021fbe
No known key found for this signature in database
4 changed files with 276 additions and 37 deletions

View file

@ -1,10 +0,0 @@
defmodule Pleroma.Repo.Migrations.CreateWebhooks do
use Ecto.Migration
def up, do: :noop
def down do
drop_if_exists(unique_index(:webhooks, [:url]))
drop_if_exists(table(:webhooks))
end
end

View file

@ -1,11 +0,0 @@
defmodule Pleroma.Repo.Migrations.AddInternalToWebhooks do
use Ecto.Migration
def up, do: :noop
def down do
alter table(:webhooks) do
remove_if_exists(:internal, :boolean)
end
end
end