]> 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)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 21 Oct 2016 14:08:06 +0000 (14:08 +0000)
commit3635e8f82660ced571af592088a369db698101a3
treef9bf6f8ff14b7b8ed04b0136c2ef78db53450682
parent3b34d108e7360d0bfe74dde3d87b2398c9649c83
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>
Koha/Database.pm
misc/devel/populate_db.pl [new file with mode: 0644]