Bugzilla – Attachment 105881 Details for
Bug 19821
Run tests on a separate database
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19821: Use database_test entry if exists
Bug-19821-Use-databasetest-entry-if-exists.patch (text/plain), 2.30 KB, created by
Kyle M Hall (khall)
on 2020-06-15 12:40:05 UTC
(
hide
)
Description:
Bug 19821: Use database_test entry if exists
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2020-06-15 12:40:05 UTC
Size:
2.30 KB
patch
obsolete
>From d2c0b7657de00cdf1bcb0b0a9dcb1be9c6af62d3 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 4 May 2018 14:26:25 -0300 >Subject: [PATCH] Bug 19821: Use database_test entry if exists > >If the database_test entry exists in the config file we are going to use >it. This will be a trick for developers and CI > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: Bouzid Fergani <bouzid.fergani@inlibro.com> >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/Installer.pm | 2 +- > Koha/Database.pm | 2 +- > installer/install.pl | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/C4/Installer.pm b/C4/Installer.pm >index db247e5243..d05876a5cd 100644 >--- a/C4/Installer.pm >+++ b/C4/Installer.pm >@@ -69,7 +69,7 @@ sub new { > my $self = {}; > > # get basic information from context >- $self->{'dbname'} = C4::Context->config("database"); >+ $self->{'dbname'} = C4::Context->config("database_test") || C4::Context->config("database"); > $self->{'dbms'} = C4::Context->config("db_scheme") ? C4::Context->config("db_scheme") : "mysql"; > $self->{'hostname'} = C4::Context->config("hostname"); > $self->{'port'} = C4::Context->config("port"); >diff --git a/Koha/Database.pm b/Koha/Database.pm >index 55baf80537..1a25bbc479 100644 >--- a/Koha/Database.pm >+++ b/Koha/Database.pm >@@ -53,7 +53,7 @@ sub _new_schema { > > my $db_driver = $context->{db_driver}; > >- my $db_name = $context->config("database"); >+ my $db_name = $context->config("database_test") || $context->config("database"); > my $db_host = $context->config("hostname"); > my $db_port = $context->config("port") || ''; > my $db_user = $context->config("user"); >diff --git a/installer/install.pl b/installer/install.pl >index 5bd3806872..4fe0a58fb8 100755 >--- a/installer/install.pl >+++ b/installer/install.pl >@@ -56,7 +56,7 @@ if ( defined($language) ) { > > my $installer = C4::Installer->new(); > my %info; >-$info{'dbname'} = C4::Context->config("database"); >+$info{'dbname'} = C4::Context->config("database_test") || C4::Context->config("database"); > $info{'dbms'} = ( > C4::Context->config("db_scheme") > ? C4::Context->config("db_scheme") >-- >2.24.1 (Apple Git-126)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19821
:
69825
|
69842
|
69843
|
69844
|
71817
|
75045
|
75091
|
75092
|
81893
|
81894
|
81895
|
81896
|
81897
|
81898
|
81899
|
81900
|
99435
|
99436
|
99437
|
99438
|
99439
|
99440
|
99441
|
103409
|
103410
|
103411
|
103412
|
103413
|
103414
|
103415
|
105876
|
105877
|
105878
|
105879
|
105880
|
105881
|
105882
|
120417
|
120418
|
120419
|
120420
|
120421
|
120422
|
120423