projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'openapi/schema-account-pleromafields' into 'develop'
[akkoma]
/
lib
/
pleroma
/
application_requirements.ex
diff --git
a/lib/pleroma/application_requirements.ex
b/lib/pleroma/application_requirements.ex
index 3bba70b7b42d31783f78083cf9ff1f7ab33705c1..88575a498f6db653c5b40a631961089ad1ba7660 100644
(file)
--- a/
lib/pleroma/application_requirements.ex
+++ b/
lib/pleroma/application_requirements.ex
@@
-24,7
+24,9
@@
defmodule Pleroma.ApplicationRequirements do
defp handle_result(:ok), do: :ok
defp handle_result({:error, message}), do: raise(VerifyError, message: message)
defp handle_result(:ok), do: :ok
defp handle_result({:error, message}), do: raise(VerifyError, message: message)
- defp check_migrations_applied!(:ok) do
+ # Checks for pending migrations.
+ #
+ def check_migrations_applied!(:ok) do
unless Pleroma.Config.get(
[:i_am_aware_this_may_cause_data_loss, :disable_migration_check],
false
unless Pleroma.Config.get(
[:i_am_aware_this_may_cause_data_loss, :disable_migration_check],
false
@@
-58,8
+60,10
@@
defmodule Pleroma.ApplicationRequirements do
end
end
end
end
- def
p
check_migrations_applied!(result), do: result
+ def check_migrations_applied!(result), do: result
+ # Checks for settings of RUM indexes.
+ #
defp check_rum!(:ok) do
{_, res, _} =
Ecto.Migrator.with_repo(Pleroma.Repo, fn repo ->
defp check_rum!(:ok) do
{_, res, _} =
Ecto.Migrator.with_repo(Pleroma.Repo, fn repo ->