summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2022-12-16 00:36:59 +0000
committerlain <lain@soykaf.club>2022-12-16 00:36:59 +0000
commit301eb86b35957cbb91849959cf596e4b480077e0 (patch)
tree33a6218a2e5a9856cd9da31f6a85d8304b2c6d0f /priv
parentc0cfc454ba7ecaa5cc729c7916b72226df2e87ff (diff)
parentbb27e4134b67e406810e40bbefd99fe392c25fed (diff)
downloadpleroma-301eb86b35957cbb91849959cf596e4b480077e0.tar.gz
pleroma-301eb86b35957cbb91849959cf596e4b480077e0.zip
Merge branch 'update-deps' into 'develop'
Update to Phoenix 1.6, Elixir 1.11, and chase dependencies See merge request pleroma/pleroma!3766
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20221103014611_create_oban_peers.exs7
-rw-r--r--priv/repo/migrations/20221103014728_swap_primary_oban_indexes.exs26
2 files changed, 33 insertions, 0 deletions
diff --git a/priv/repo/migrations/20221103014611_create_oban_peers.exs b/priv/repo/migrations/20221103014611_create_oban_peers.exs
new file mode 100644
index 000000000..cb522a056
--- /dev/null
+++ b/priv/repo/migrations/20221103014611_create_oban_peers.exs
@@ -0,0 +1,7 @@
+defmodule Pleroma.Repo.Migrations.CreateObanPeers do
+ use Ecto.Migration
+
+ def up, do: Oban.Migrations.up(version: 11)
+
+ def down, do: Oban.Migrations.down(version: 11)
+end
diff --git a/priv/repo/migrations/20221103014728_swap_primary_oban_indexes.exs b/priv/repo/migrations/20221103014728_swap_primary_oban_indexes.exs
new file mode 100644
index 000000000..54e2503de
--- /dev/null
+++ b/priv/repo/migrations/20221103014728_swap_primary_oban_indexes.exs
@@ -0,0 +1,26 @@
+defmodule Pleroma.Repo.Migrations.SwapPrimaryObanIndexes do
+ use Ecto.Migration
+
+ @disable_ddl_transaction true
+ @disable_migration_lock true
+
+ def change do
+ create_if_not_exists(
+ index(
+ :oban_jobs,
+ [:state, :queue, :priority, :scheduled_at, :id],
+ concurrently: true,
+ prefix: "public"
+ )
+ )
+
+ drop_if_exists(
+ index(
+ :oban_jobs,
+ [:queue, :state, :priority, :scheduled_at, :id],
+ concurrently: true,
+ prefix: "public"
+ )
+ )
+ end
+end