Bug 19422: Missing DROP TABLES in kohastructure.sql

Adds DROP TABLE statements to the following tables
    - article_requests
    - biblio_metadata
    - deletedbiblio_metadata

Test plan :
Clean your database by running 'mysql < kohastructure.sql'.
Without patch you'll get error messages.
With patch everything will work fine, no warnings.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 2386e33dbb)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
David Bourgault 2017-10-06 08:42:32 -04:00 committed by Fridolin Somers
parent ac09cc26a1
commit bb2ff03ff7
1 changed files with 3 additions and 0 deletions

View File

@ -3916,6 +3916,7 @@ CREATE TABLE IF NOT EXISTS `housebound_role` (
-- Table structure for table 'article_requests'
--
DROP TABLE IF EXISTS `article_requests`;
CREATE TABLE `article_requests` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`borrowernumber` int(11) NOT NULL,
@ -3949,6 +3950,7 @@ CREATE TABLE `article_requests` (
-- Table structure for table `biblio_metadata`
--
DROP TABLE IF EXISTS `biblio_metadata`;
CREATE TABLE biblio_metadata (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`biblionumber` INT(11) NOT NULL,
@ -3966,6 +3968,7 @@ CREATE TABLE biblio_metadata (
-- Table structure for table `deletedbiblio_metadata`
--
DROP TABLE IF EXISTS `deletedbiblio_metadata`;
CREATE TABLE deletedbiblio_metadata (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`biblionumber` INT(11) NOT NULL,