fix(migrations): make Rebased rollback safe
This commit is contained in:
parent
e1e853e8f7
commit
478b021fbe
4 changed files with 276 additions and 37 deletions
|
|
@ -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
|
||||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue