]> git.koha-community.org Git - koha.git/commit
Bug 10337: Add a script to populate devs' DBs with sample data
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 17 Oct 2016 16:50:50 +0000 (17:50 +0100)
committerFrédéric Demians <f.demians@tamil.fr>
Sat, 22 Oct 2016 13:03:19 +0000 (15:03 +0200)
commit6490df198c18fc99ee289f0b9abe1e05936d80d2
tree0e08fb07e8efcc2e01589591fef666594b454a5d
parent2a62a9a18cc3a36288e6abf3586a7e606e6e07db
Bug 10337: Add a script to populate devs' DBs with sample data

Executing the installer process and inserting all the sample data take a
lot of clics and time.
The idea of this script is to provide a quick way to insert all the
sample data easily to get a working Koha install asap.

Test plan:
- Set your database config to a non-existent DB
- Execute perl misc/devel/populate_db.pl
You will get an error
- Create an empty DB
- Execute perl misc/devel/populate_db.pl
It will insert all the MARC21 sample data
- Execute perl misc/devel/populate_db.pl
You will get an error because the DB is not empty (systempreferences and
borrowers tables)

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 3635e8f82660ced571af592088a369db698101a3)
Koha/Database.pm
misc/devel/populate_db.pl [new file with mode: 0644]