Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Clarify unaccent migration

Oliver Güntherfcfe561ea9e6
diff --git a/db/migrate/20240311111957_enable_unaccent_extension.rb b/db/migrate/20240311111957_enable_unaccent_extension.rb
index 4bf28a3b7c5..c365df7e14b 100644
--- a/db/migrate/20240311111957_enable_unaccent_extension.rb
+++ b/db/migrate/20240311111957_enable_unaccent_extension.rb
@@ -35,7 +35,13 @@ class EnableUnaccentExtension < ActiveRecord::Migration[7.1]
raise <<~MESSAGE
\e[33mWARNING:\e[0m Could not find or enable the `unaccent` extension for PostgreSQL.
This is needed for filtering users with accents, please install the postgresql-contrib module
- for your PostgreSQL installation and re-run this migration.
+ for your PostgreSQL installation using the package manager of your operating system.
+
+ Once this package is installed, please re-run this migration like so:
+
+ - Packaged installation: openproject run bundle exec rake db:migrate:redo 20240311111957
+ - Docker installation: docker exec -it "container_id" bundle exec rake db:migrate:redo 20240311111957
+ - Docker-compose installation: docker-compose exec app bundle exec rake db:migrate:redo 20240311111957
Read more about the contrib module at `https://www.postgresql.org/docs/current/contrib.html`.
MESSAGE