Koha/debian/scripts
Jason Boyer da7177f536 Bug 28749: Restore the database name to Koha dumps
The line to use the --databases flag with mysqldump by default was accidentally
removed from koha-dump when the --schema-only option was added. This makes all
backups act as if koha-dump is called with the --without-db-name flag, causing
koha-restore to fail to restore the database because it's neither CREATEd or USEd.

This patch restores that line

To test:
1 - sudo debian/scripts/koha-dump kohadev
2 - zcat /var/spool/koha/kohadev/kohadev-2021-07-28.sql.gz | grep DATABASE
3 - Notice no output
4 - Apply patch
5 - sudo debian/scripts/koha-dump kohadev
6 - zcat /var/spool/koha/kohadev/kohadev-2021-07-28.sql.gz | grep DATABASE
7 - You get the line:
    CREATE DATABASE /*!32312 IF NOT EXISTS*/ `koha_kohadev` /*!40100 DEFAULT CHARACTER SET latin1 */;

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-07-30 15:54:05 +02:00
..
koha-create Bug 28364: Make log4perl.conf belong to the instance user 2021-05-27 17:17:30 +02:00
koha-create-dirs
koha-disable Bug 22417: Add debian script koha-worker 2020-10-05 15:22:44 +02:00
koha-dump Bug 28749: Restore the database name to Koha dumps 2021-07-30 15:54:05 +02:00
koha-dump-defaults
koha-elasticsearch Bug 26448: Don't overwrite commit parameter passed to koha-elasticsearch 2020-09-18 11:49:29 +02:00
koha-email-disable
koha-email-enable
koha-enable
koha-foreach Bug 25634: Warn if koha-shell returns non-zero in koha-foreach 2020-06-12 10:32:30 +02:00
koha-functions.sh Bug 28519: Put CGI::Session::Serialize::yamlxs in lib directory 2021-06-17 10:07:36 +02:00
koha-indexer Bug 27348: Fix test on ALTERNATE_INDEXER_DAEMON in koha-indexer 2021-06-21 12:07:28 +02:00
koha-list
koha-mysql
koha-mysqlcheck
koha-passwd
koha-plack Bug 25778: Fix var scope in koha-plack for PERL5LIB and KOHA_HOME 2020-08-18 15:45:49 +02:00
koha-rebuild-zebra
koha-remove Bug 22417: Add debian script koha-worker 2020-10-05 15:22:44 +02:00
koha-reset-passwd
koha-restore
koha-run-backups Bug 21111: Add --exclude-indexes to koha-run-backups 2020-11-04 12:59:34 +01:00
koha-shell Bug 28519: Add lib to koha-shell 2021-06-17 15:59:40 +02:00
koha-sip Bug 24993: fix increment 2020-04-14 08:33:00 +01:00
koha-sitemap
koha-translate Bug 20116: Fix package install path for clear_cache.pl 2020-05-26 14:43:56 +02:00
koha-upgrade-schema
koha-upgrade-to-3.4
koha-worker Bug 27839: (follow-up) Update docs for koha-worker 2021-04-12 15:27:50 +02:00
koha-z3950-responder Bug 25618: Fix wrong package install path for misc dir 2020-05-29 11:44:54 +02:00
koha-zebra