From 7a6ea4aadaf940286d032af2338c55d6618eeeee Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Sun, 12 Jun 2016 10:15:38 +0100 Subject: [PATCH] Bug 15707: (QA followup) Drop table if exists 1/ DROP table if exists 2/ FAIL spelling decendents ==> descendants Signed-off-by: Tomas Cohen Arazi --- installer/data/mysql/kohastructure.sql | 1 + t/db_dependent/LibraryGroups.t | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql index f2aa6d1e05..f0b944db13 100644 --- a/installer/data/mysql/kohastructure.sql +++ b/installer/data/mysql/kohastructure.sql @@ -4179,6 +4179,7 @@ CREATE TABLE illrequestattributes ( -- Table structure for table 'library_groups' -- +DROP TABLE IF EXISTS `library_groups`; CREATE TABLE library_groups ( id INT(11) NOT NULL auto_increment, -- unique id for each group parent_id INT(11) NULL DEFAULT NULL, -- if this is a child group, the id of the parent group diff --git a/t/db_dependent/LibraryGroups.t b/t/db_dependent/LibraryGroups.t index 5076e11b15..c3aef9ff97 100644 --- a/t/db_dependent/LibraryGroups.t +++ b/t/db_dependent/LibraryGroups.t @@ -74,6 +74,6 @@ is( $library->id, $groupA_library1->branchcode, 'Branchcode for fetched library my @libraries_not_direct_children = $groupA->libraries_not_direct_children(); $in_list = any { $_->id eq $groupA_library1->branchcode } @libraries_not_direct_children; -ok( !$in_list, 'Method libraries_not_direct_children returns all libraries not direct decendents of group, library 1 is not in the list'); +ok( !$in_list, 'Method libraries_not_direct_children returns all libraries not direct descendants of group, library 1 is not in the list'); $in_list = any { $_->id eq $groupA1_library2->branchcode } @libraries_not_direct_children; -ok( $in_list, 'Method libraries_not_direct_children returns all libraries not direct decendents of group, library 2 is in the list'); +ok( $in_list, 'Method libraries_not_direct_children returns all libraries not direct descendants of group, library 2 is in the list'); -- 2.14.1