summaryrefslogtreecommitdiff
path: root/priv/repo/migrations
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-03-16 15:31:31 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-03-16 15:31:31 +0400
commit421e35b578b3fc109f820f693e91139a3e3f8970 (patch)
tree37da58962582854597cd068c603b8ba23e10f7bb /priv/repo/migrations
parentd1c7f8e576e31487544b57d67802843b8ef38388 (diff)
parentc2527b8c63a4e35b121981efe2c39cc54c77648d (diff)
downloadpleroma-421e35b578b3fc109f820f693e91139a3e3f8970.tar.gz
pleroma-421e35b578b3fc109f820f693e91139a3e3f8970.zip
Merge branch 'develop' into global-status-expiration
Diffstat (limited to 'priv/repo/migrations')
-rw-r--r--priv/repo/migrations/20200314123607_config_remove_fetch_initial_posts.exs10
-rw-r--r--priv/repo/migrations/20200315125756_delete_fetch_initial_posts_jobs.exs10
2 files changed, 20 insertions, 0 deletions
diff --git a/priv/repo/migrations/20200314123607_config_remove_fetch_initial_posts.exs b/priv/repo/migrations/20200314123607_config_remove_fetch_initial_posts.exs
new file mode 100644
index 000000000..392f531e8
--- /dev/null
+++ b/priv/repo/migrations/20200314123607_config_remove_fetch_initial_posts.exs
@@ -0,0 +1,10 @@
+defmodule Pleroma.Repo.Migrations.ConfigRemoveFetchInitialPosts do
+ use Ecto.Migration
+
+ def change do
+ execute(
+ "delete from config where config.key = ':fetch_initial_posts' and config.group = ':pleroma';",
+ ""
+ )
+ end
+end
diff --git a/priv/repo/migrations/20200315125756_delete_fetch_initial_posts_jobs.exs b/priv/repo/migrations/20200315125756_delete_fetch_initial_posts_jobs.exs
new file mode 100644
index 000000000..5b8e3ab91
--- /dev/null
+++ b/priv/repo/migrations/20200315125756_delete_fetch_initial_posts_jobs.exs
@@ -0,0 +1,10 @@
+defmodule Pleroma.Repo.Migrations.DeleteFetchInitialPostsJobs do
+ use Ecto.Migration
+
+ def change do
+ execute(
+ "delete from oban_jobs where worker = 'Pleroma.Workers.BackgroundWorker' and args->>'op' = 'fetch_initial_posts';",
+ ""
+ )
+ end
+end