Bugzilla – Attachment 122670 Details for
Bug 25078
Update DB process - wrap each DBRev inside a transaction and better error handling
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25078: [DO NOT PUSH] Another Test for the backward shim
Bug-25078-DO-NOT-PUSH-Another-Test-for-the-backwar.patch (text/plain), 1.13 KB, created by
Jonathan Druart
on 2021-07-08 07:48:53 UTC
(
hide
)
Description:
Bug 25078: [DO NOT PUSH] Another Test for the backward shim
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-07-08 07:48:53 UTC
Size:
1.13 KB
patch
obsolete
>From 07ce9d1c336672d64363276993e02784ea29eb55 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 23 Jun 2021 13:09:37 +0100 >Subject: [PATCH] Bug 25078: [DO NOT PUSH] Another Test for the backward shim > >--- > installer/data/mysql/atomicupdate/bug_25078.perl | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_25078.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_25078.perl b/installer/data/mysql/atomicupdate/bug_25078.perl >new file mode 100644 >index 00000000000..c76865211e8 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_25078.perl >@@ -0,0 +1,13 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ # you can use $dbh here like: >+ # $dbh->do( "ALTER TABLE biblio ADD COLUMN badtaste int" ); >+ >+ # or perform some test and warn >+ # if( !column_exists( 'biblio', 'biblionumber' ) ) { >+ # warn "There is something wrong"; >+ # } >+ >+ # Always end with this (adjust the bug info) >+ NewVersion( $DBversion, 25078, ["Description", "Boom, boom", "Chick-a-boom"]); >+} >-- >2.20.1
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 25078
:
102521
|
116032
|
116033
|
116034
|
116208
|
116209
|
117084
|
121909
|
121910
|
121911
|
121982
|
121983
|
121984
|
122208
|
122322
|
122323
|
122324
|
122325
|
122326
|
122329
|
122665
|
122666
|
122667
|
122668
|
122669
| 122670 |
122671
|
122679
|
122680
|
122875
|
123356
|
123357
|
123358
|
123359
|
123360
|
123361
|
123362
|
123363
|
123364
|
123365
|
123366
|
123367
|
123850
|
123851
|
123853
|
123937
|
124269