Bugzilla – Attachment 13529 Details for
Bug 7167
updatedatabase improvements
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7167: Add .pl and .sql examples
Bug-7167-Add-pl-and-sql-examples.patch (text/plain), 2.19 KB, created by
Chris Nighswonger
on 2012-11-19 15:47:49 UTC
(
hide
)
Description:
Bug 7167: Add .pl and .sql examples
Filename:
MIME Type:
Creator:
Chris Nighswonger
Created:
2012-11-19 15:47:49 UTC
Size:
2.19 KB
patch
obsolete
>From 468de5f888b45791c87bf01052b2b919e6b2e889 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Tue, 31 Jul 2012 11:03:25 +0200 >Subject: [PATCH] Bug 7167: Add .pl and .sql examples >Content-Type: text/plain; charset="utf-8" > >Those files are in version directory, so will never be executed by the updater >If you want to provide an update, do it in a 3.09/ directory (if your update is expected for 3.10 version) > >Note that the updater use a md5sum checker. So, if the same update is in 2 different places, it will be detected. That will be handy for changes made on both stable and master: a library running stable will get the update when updating. When upgrading to the next major release, Koha will detect the patch has already been applied, and no error will be thrown. With the previous mechanism, a DBRev ported to stable was re-executed when upgrading to master, resulting in a nasty (but usually harmless) error message > >Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> >Signed-off-by: Chris Nighswonger <cnighswonger@foundations.edu> >--- > .../data/mysql/versions/update_sample.sql.sample | 8 -------- > 1 file changed, 8 deletions(-) > >diff --git a/installer/data/mysql/versions/update_sample.sql.sample b/installer/data/mysql/versions/update_sample.sql.sample >index ac83c0b..bb2cc8d 100644 >--- a/installer/data/mysql/versions/update_sample.sql.sample >+++ b/installer/data/mysql/versions/update_sample.sql.sample >@@ -25,11 +25,3 @@ CREATE TABLE `testtable1` ( > -- without ; just for the sample > INSERT INTO `systempreferences` VALUES ('TestSyspref1','2','set the level of error info sent to the browser. 0=none, 1=some, 2=most','0|1|2','Choice') > // >- >--- Note that you can even put more than 1 SQL query without DELIMITER >--- In this case, the updater will consider them as 1 query. >--- That can be usefull if you want to do a logical grouping >-INSERT INTO `systempreferences` VALUES ('TestSyspref2','2','set the level of error info sent to the browser. 0=none, 1=some, 2=most','0|1|2','Choice'); >-INSERT INTO `systempreferences` VALUES ('TestSyspref3','2','set the level of error info sent to the browser. 0=none, 1=some, 2=most','0|1|2','Choice'); >-// >--- End of complex sample >-- >1.7.9.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 7167
:
6377
|
6378
|
6379
|
6381
|
6414
|
6415
|
6416
|
6476
|
6477
|
6478
|
6479
|
6722
|
6832
|
7903
|
8178
|
9859
|
9860
|
9861
|
9862
|
10033
|
10034
|
10549
|
10666
|
10667
|
10668
|
10825
|
11129
|
11222
|
11223
|
11224
|
11225
|
11226
|
11227
|
11228
|
11229
|
11230
|
11231
|
11232
|
11235
|
11236
|
11237
|
11238
|
11239
|
11240
|
11241
|
11242
|
11243
|
11244
|
11245
|
11246
|
11571
|
13423
|
13424
|
13425
|
13426
|
13427
|
13428
|
13429
|
13430
|
13431
|
13432
|
13433
|
13434
|
13435
|
13436
|
13437
|
13456
|
13457
|
13509
|
13516
|
13517
|
13518
|
13519
|
13520
|
13521
|
13522
|
13523
|
13524
|
13525
|
13526
|
13527
|
13528
|
13529
|
13733
|
13734
|
13842
|
13845
|
13848
|
13851
|
13852
|
13853
|
13854
|
14310
|
16113
|
16114
|
16115
|
16116
|
16117
|
16596