Bugzilla – Attachment 37065 Details for
Bug 13068
New feature for DB update and sandbox
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13068 [QA Followup] - Fix reading of sql files list
Bug-13068-QA-Followup---Fix-reading-of-sql-files-l.patch (text/plain), 1.44 KB, created by
Kyle M Hall (khall)
on 2015-03-20 17:25:53 UTC
(
hide
)
Description:
Bug 13068 [QA Followup] - Fix reading of sql files list
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-03-20 17:25:53 UTC
Size:
1.44 KB
patch
obsolete
>From 1538b3a5e9e0c853ae2c9385973580fff018538d Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 20 Mar 2015 13:24:38 -0400 >Subject: [PATCH] Bug 13068 [QA Followup] - Fix reading of sql files list > >--- > installer/data/mysql/updatedatabase.pl | 13 ++++++------- > 1 files changed, 6 insertions(+), 7 deletions(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index c23e770..b2ef3af 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -9914,14 +9914,13 @@ if(CheckVersion($DBversion)) { > # SEE bug 13068 > # if there is anything in the atomicupdate, read and execute it. > >-opendir( my $dirh, C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate' ); >-my $old_delimiter = $/; >-$/ = ';'; >-while (readdir $dirh) { >- next unless $_ =~ /\.sql$/; # skip non SQL files >- print "DEV atomic update : $_ \n"; >+my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/'; >+opendir( my $dirh, $update_dir ); >+while ( my $file = readdir $dirh ) { >+ next unless $file =~ /\.sql$/; # skip non SQL files >+ print "DEV atomic update : $file \n"; > my $installer = C4::Installer->new(); >- my $rv = $installer->load_sql( C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/' . $_ )? 0: 1; >+ my $rv = $installer->load_sql( $update_dir . $file ) ? 0 : 1; > } > > >-- >1.7.2.5
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 13068
:
32173
|
32174
|
32175
|
32177
|
32178
|
32179
|
32180
|
32185
|
32294
|
32300
|
32398
|
32399
|
32525
|
32526
|
32658
|
32659
|
32784
|
32785
|
32839
|
32840
|
32841
|
32842
|
32843
|
32919
|
32921
|
33859
|
34070
|
34071
|
34072
|
34949
|
34950
|
34951
|
34960
|
34998
|
35000
|
35001
|
35002
|
35003
|
35366
|
35367
|
35368
|
35370
|
36716
|
36717
|
36718
|
36719
|
36779
|
36780
|
36781
|
36792
|
37061
|
37062
|
37063
|
37064
| 37065 |
37066
|
37075
|
37076
|
37491