From ed105ac3a99703b6d428f16601ec6642a35c7ab8 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Wed, 3 Oct 2018 21:08:49 +0300 Subject: [PATCH] Add "SET search_path" command in dbinit This makes it easy to put the gruntmaster database into its own schema. --- lib/Gruntmaster/Data.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index a9c128d..7b90c87 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -47,6 +47,7 @@ sub db () { $db } sub dbinit { $db = DBIx::Simple->new(@_); $db->keep_statements = 100; + $db->dbh->do('SET search_path TO gruntmaster, public'); }; sub purge; -- 2.39.2