]> iEval git - gruntmaster-data.git/commitdiff
Add "SET search_path" command in dbinit
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 3 Oct 2018 18:08:49 +0000 (21:08 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 3 Oct 2018 18:16:06 +0000 (21:16 +0300)
This makes it easy to put the gruntmaster database into its own schema.

lib/Gruntmaster/Data.pm

index a9c128d0cbb330c914eefdd6a85024495db214e7..7b90c872df7d2717aee7261f99e3e84b417e79c2 100644 (file)
@@ -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;
This page took 0.022133 seconds and 4 git commands to generate.