Bug 27903 - Script to move atomic updates to updatedatabase.pl
Summary: Script to move atomic updates to updatedatabase.pl
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: master
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Jonathan Druart
QA Contact: Testopia
Depends on:
Reported: 2021-03-09 13:53 UTC by Jonathan Druart
Modified: 2022-03-22 14:08 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:

move_atomicupdate.pl (1.98 KB, application/x-perl)
2021-03-09 13:54 UTC, Jonathan Druart

Note You need to log in before you can comment on or make changes to this bug.
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]
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
% 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 2021-06-18 14:46:40 UTC
Very cool
Comment 4 Jonathan Druart 2022-03-22 14:08:07 UTC
No longer needed.