From b5bad6a673afeb31daa1d7e2f9f45ffa9cccaf80 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 5 Feb 2018 16:03:03 -0300 Subject: [PATCH] Bug 20144: [sql_modes] Shorten cities.city_zipcode It's a varchar(20) Fix for: Data too long for column 'city_zipcode' Signed-off-by: Josef Moravec Signed-off-by: Julian Maurice --- t/db_dependent/Koha/Cities.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Koha/Cities.t b/t/db_dependent/Koha/Cities.t index 9947d3b917..acf44b3a04 100644 --- a/t/db_dependent/Koha/Cities.t +++ b/t/db_dependent/Koha/Cities.t @@ -35,13 +35,13 @@ my $nb_of_cities = Koha::Cities->search->count; my $new_city_1 = Koha::City->new({ city_name => 'my_city_name_for_test_1', city_state => 'my_city_state_for_test_1', - city_zipcode => 'my_city_zipcode_for_test_1', + city_zipcode => 'my_zipcode_4_test_1', city_country => 'my_city_country_for_test_1', })->store; my $new_city_2 = Koha::City->new({ city_name => 'my_city_name_for_test_2', city_state => 'my_city_state_for_test_2', - city_zipcode => 'my_city_zipcode_for_test_2', + city_zipcode => 'my_zipcode_4_test_2', city_country => 'my_city_country_for_test_2', })->store; -- 2.14.2