Description
Jonathan Druart
2016-11-01 13:55:35 UTC
Created attachment 57030 [details] [review] Bug 17529: Add a --with-records option to populate_db.pl It's so frustrating to have to insert data manually to test with a fresh install. This patch adds the data from the marc21 sandbox and let populate_db.pl inserts them Test plan: DROP DATABASE koha_kohadev; perl misc/devel/populate_db.pl --with-records -v Enjoy Created attachment 57031 [details] [review] Bug 17529: Add a --with-records option to populate_db.pl It's so frustrating to have to insert data manually to test with a fresh install. This patch adds the data from the marc21 sandbox and let populate_db.pl inserts them Test plan: DROP DATABASE koha_kohadev; perl misc/devel/populate_db.pl --with-records -v Enjoy Created attachment 57032 [details] [review] [SIGNED-OFF] Bug 17529: Add a --with-records option to populate_db.pl It's so frustrating to have to insert data manually to test with a fresh install. This patch adds the data from the marc21 sandbox and let populate_db.pl inserts them Test plan: DROP DATABASE koha_kohadev; perl misc/devel/populate_db.pl --with-records -v Enjoy Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Created attachment 57033 [details] [review] [SIGNED-OFF] Bug 17529: Follow-up - add with records to list of options in usage Signed-off-by: Josef Moravec <josef.moravec@gmail.com> I was too fast and signed off the older (now obsoleted) patch, I'll do it again... Created attachment 57039 [details] [review] [SIGNED-OFF] Bug 17529: Add a --with-records option to populate_db.pl It's so frustrating to have to insert data manually to test with a fresh install. This patch adds the data from the marc21 sandbox and let populate_db.pl inserts them Test plan: DROP DATABASE koha_kohadev; perl misc/devel/populate_db.pl --with-records -v Enjoy Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Created attachment 57040 [details] [review] Bug 17529: Follow-up - add --with-records to list of options in usage Created attachment 57452 [details] [review] Bug 17529: Remove items without homebranch In the previous data, there are 11 items without homebranch select distinct (homebranch), count(*) from items group by holdingbranch; This patch regenerates the sql file without these items. Feel free to squash with the first patch! I have finally decided not to integrate these script into the Koha codebase but create a new project instead. See https://github.com/joubu/koha-misc4dev |