Bugzilla – Attachment 149956 Details for
Bug 24975
Refactor database translations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24975: (follow-up) Fix dbrev
Bug-24975-follow-up-Fix-dbrev.patch (text/plain), 1.53 KB, created by
Marcel de Rooy
on 2023-04-20 12:59:25 UTC
(
hide
)
Description:
Bug 24975: (follow-up) Fix dbrev
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-04-20 12:59:25 UTC
Size:
1.53 KB
patch
obsolete
>From 6234a9ff5fa91b0c495f577b175ee169895d4674 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 20 Apr 2023 12:58:46 +0000 >Subject: [PATCH] Bug 24975: (follow-up) Fix dbrev >Content-Type: text/plain; charset=utf-8 > >--- > .../{bug-24975.perl => bug24975.pl} | 20 +++++++++++++------ > 1 file changed, 14 insertions(+), 6 deletions(-) > rename installer/data/mysql/atomicupdate/{bug-24975.perl => bug24975.pl} (87%) > >diff --git a/installer/data/mysql/atomicupdate/bug-24975.perl b/installer/data/mysql/atomicupdate/bug24975.pl >similarity index 87% >rename from installer/data/mysql/atomicupdate/bug-24975.perl >rename to installer/data/mysql/atomicupdate/bug24975.pl >index 011fe02361..f57e5b5585 100644 >--- a/installer/data/mysql/atomicupdate/bug-24975.perl >+++ b/installer/data/mysql/atomicupdate/bug24975.pl >@@ -1,5 +1,17 @@ >-$DBversion = 'XXX'; >-if( CheckVersion( $DBversion ) ) { >+use Modern::Perl; >+ >+return { >+ bug_number => 24975, >+ description => "Refactor database translations", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ dbrev($dbh); >+ }, >+}; >+ >+sub dbrev { >+ my $dbh = shift; > $dbh->do(q{ > CREATE TABLE IF NOT EXISTS l10n_source ( > `l10n_source_id` INT(11) NOT NULL AUTO_INCREMENT, >@@ -43,8 +55,4 @@ if( CheckVersion( $DBversion ) ) { > > #$dbh->do('DROP TABLE localization'); > } >- >- >- SetVersion( $DBversion ); >- print "Upgrade to $DBversion done (Bug 24975 - l10n_source, l10n_target)\n"; > } >-- >2.30.2
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 24975
:
101703
|
101786
|
102387
|
102388
|
102513
|
102514
|
102688
|
102701
|
132388
|
132508
|
132509
|
132510
|
132511
|
132512
|
132513
|
132514
|
132515
|
132516
|
132517
|
132518
|
132519
|
132520
|
132521
|
132522
|
132523
|
132524
|
132525
|
132526
|
132527
|
132528
|
132529
|
132530
|
132531
|
132532
|
132533
|
132546
|
132562
|
132563
|
132564
|
132565
|
132566
|
132567
|
132568
|
132569
|
132570
|
132571
|
132572
|
132573
|
132574
|
132575
|
149941
|
149942
|
149943
|
149944
|
149945
|
149946
|
149947
|
149948
|
149949
|
149950
|
149951
|
149952
|
149953
|
149954
|
149956
|
149957
|
150015
|
150033
|
150034