From 0fa64b718ffa78edcce598f34ab8a193f85b9889 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Tue, 20 Sep 2016 17:44:31 +0200 Subject: [PATCH] gitlab module: enable postgres pg_trgm extension --- nixos/modules/services/misc/gitlab.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/misc/gitlab.nix b/nixos/modules/services/misc/gitlab.nix index b3f09999adba..de90d461f527 100644 --- a/nixos/modules/services/misc/gitlab.nix +++ b/nixos/modules/services/misc/gitlab.nix @@ -533,6 +533,8 @@ in { fi fi + # enable required pg_trgm extension for gitlab + psql gitlab -c "CREATE EXTENSION IF NOT EXISTS pg_trgm" # Always do the db migrations just to be sure the database is up-to-date ${gitlab-rake}/bin/gitlab-rake db:migrate RAILS_ENV=production