projects
/
gruntmaster-data.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7f90c3b
)
Add "SET search_path" command in dbinit
author
Marius Gavrilescu
<marius@ieval.ro>
Wed, 3 Oct 2018 18:08:49 +0000
(21:08 +0300)
committer
Marius 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
patch
|
blob
|
blame
|
history
diff --git
a/lib/Gruntmaster/Data.pm
b/lib/Gruntmaster/Data.pm
index a9c128d0cbb330c914eefdd6a85024495db214e7..7b90c872df7d2717aee7261f99e3e84b417e79c2 100644
(file)
--- 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;
sub dbinit {
$db = DBIx::Simple->new(@_);
$db->keep_statements = 100;
+ $db->dbh->do('SET search_path TO gruntmaster, public');
};
sub purge;
};
sub purge;
This page took
0.011473 seconds
and
4
git commands to generate.