From 07ce9d1c336672d64363276993e02784ea29eb55 Mon Sep 17 00:00:00 2001 From: Martin Renvoize 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