From: Marius Gavrilescu Date: Wed, 3 Oct 2018 18:08:49 +0000 (+0300) Subject: Add "SET search_path" command in dbinit X-Git-Tag: 6000.001~1 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=ed105ac3a99703b6d428f16601ec6642a35c7ab8;p=gruntmaster-data.git Add "SET search_path" command in dbinit This makes it easy to put the gruntmaster database into its own schema. --- 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;