Merge branch 'migration-fix' into 'develop'
Permit the quoteUrl index creation to run concurrently See merge request pleroma/pleroma!3988
This commit is contained in:
commit
0e75315368
|
@ -0,0 +1 @@
|
||||||
|
|
|
@ -4,8 +4,14 @@
|
||||||
|
|
||||||
defmodule Pleroma.Repo.Migrations.AddQuoteUrlIndexToObjects do
|
defmodule Pleroma.Repo.Migrations.AddQuoteUrlIndexToObjects do
|
||||||
use Ecto.Migration
|
use Ecto.Migration
|
||||||
|
@disable_ddl_transaction true
|
||||||
|
|
||||||
def change do
|
def change do
|
||||||
create_if_not_exists(index(:objects, ["(data->'quoteUrl')"], name: :objects_quote_url))
|
create_if_not_exists(
|
||||||
|
index(:objects, ["(data->'quoteUrl')"],
|
||||||
|
name: :objects_quote_url,
|
||||||
|
concurrently: true
|
||||||
|
)
|
||||||
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue