]> git.koha-community.org Git - koha.git/commit
Bug 13068: updatedatabase improvement for developer process
authorPaul Poulain <paul.poulain@biblibre.com>
Fri, 6 Mar 2015 15:38:45 +0000 (16:38 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 31 Mar 2015 14:30:54 +0000 (11:30 -0300)
commit36e7ede02f3670d927a8a28e527bd16ccd511351
tree8d727ffc2e033d658a80cbf0be0f66545b7bf302
parent89a3ef5c5a1658bead838789f8b4c2857583217f
Bug 13068: updatedatabase improvement for developer process

with this patch, the updatedatabase now checks info the atomicupdate directory. If there is some SQL here, it's executed.
Note that there is no version update, so if you run the updatedatabase script twice, you'll get an sql error probably.

This patch will be very useful for sandbox testing process.

When the RM pushes a patch with something in i'atomicupdate', he will have to copy it into updatedatabase.pl, give it a number, and remove the file in db_update

Test plan:
 * apply the patch
 * create a files with a .sql extension in the atomicupdate directory
 * run updatedatabase.pl
 * look at your database, what was in the .sql file must have been run

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
installer/data/mysql/updatedatabase.pl