Bug 27903

Summary: Script to move atomic updates to updatedatabase.pl
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Architecture, internals, and plumbingAssignee: Jonathan Druart <jonathan.druart>
Status: CLOSED INVALID QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: andrew, martin.renvoize
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: move_atomicupdate.pl

Description Jonathan Druart 2021-03-09 13:53:05 UTC

    
Comment 1 Jonathan Druart 2021-03-09 13:54:08 UTC
Created attachment 117969 [details]
move_atomicupdate.pl
Comment 2 Jonathan Druart 2021-03-09 13:56:48 UTC
To use:
- download the script to misc/devel/move_atomicupdate.pl
- edit .git/info/exclude and add "misc/devel/move_atomicupdate.pl"

Apply patches with atomicupdate entries and execute:

% perl misc/devel/move_atomicupdate.pl bug_12345.pl
or
% perl misc/devel/move_atomicupdate.pl installer/data/mysql/atomicupdate/bug_12345.pl

You can specify more than 1 file

Then edit installer/data/mysql/updatedatabase.pl and confirm that the DBrev has been created correctly.
Double-check the commit message as well!
Comment 3 Martin Renvoize (ashimema) 2021-06-18 14:46:40 UTC
Very cool
Comment 4 Jonathan Druart 2022-03-22 14:08:07 UTC
No longer needed.