From bcc367f312892ed2480cbc63b57220d6ccf411b7 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Wed, 19 Nov 2014 13:28:12 -0500 Subject: [PATCH] Bug 11954 - Clean up currency default files It makes no sense to have TRUNCATE or foreign key checks. TEST PLAN --------- 1) Back up your database 2) in an mysql client: use kohadata; SET FOREIGN_KEY_CHECKS=0; TRUNCATE currency; source /home/mtompset/kohaclone/installer/data/mysql/ru-RU/optional/sample_currency.sql SET FOREIGN_KEY_CHECKS=0; TRUNCATE currency; source /home/mtompset/kohaclone/installer/data/mysql/uk-UA/optional/sample_currency.sql SET FOREIGN_KEY_CHECKS=0; TRUNCATE currency; source /home/mtompset/kohaclone/installer/data/mysql/it-IT/necessari/parameters.sql SET FOREIGN_KEY_CHECKS=1; QUIT -- These should all work without problem. --- .../data/mysql/it-IT/necessari/parameters.sql | 4 ---- .../data/mysql/ru-RU/optional/sample_currency.sql | 2 -- .../data/mysql/uk-UA/optional/sample_currency.sql | 2 -- 3 files changed, 8 deletions(-) diff --git a/installer/data/mysql/it-IT/necessari/parameters.sql b/installer/data/mysql/it-IT/necessari/parameters.sql index 806bba7..6fc7c51 100644 --- a/installer/data/mysql/it-IT/necessari/parameters.sql +++ b/installer/data/mysql/it-IT/necessari/parameters.sql @@ -1,8 +1,4 @@ -SET FOREIGN_KEY_CHECKS=0; - INSERT INTO `currency` (currency, rate, symbol, active) VALUES ('USD', 1.4, '$', 0), ('GBP', .8, '£', 0), ('EUR', 1, '€', 1); - -SET FOREIGN_KEY_CHECKS=1; diff --git a/installer/data/mysql/ru-RU/optional/sample_currency.sql b/installer/data/mysql/ru-RU/optional/sample_currency.sql index 87af401..6f2eb87 100644 --- a/installer/data/mysql/ru-RU/optional/sample_currency.sql +++ b/installer/data/mysql/ru-RU/optional/sample_currency.sql @@ -1,5 +1,3 @@ -TRUNCATE currency; - INSERT INTO `currency` (`currency`, `symbol`, `timestamp`, `rate`, active) VALUES ('CAD','$','2009-01-23 08:15:20',6.157690, 0); INSERT INTO `currency` (`currency`, `symbol`, `timestamp`, `rate`, active) VALUES ('EUR','€','2009-01-23 08:15:20',9.852920, 0); diff --git a/installer/data/mysql/uk-UA/optional/sample_currency.sql b/installer/data/mysql/uk-UA/optional/sample_currency.sql index 87af401..6f2eb87 100644 --- a/installer/data/mysql/uk-UA/optional/sample_currency.sql +++ b/installer/data/mysql/uk-UA/optional/sample_currency.sql @@ -1,5 +1,3 @@ -TRUNCATE currency; - INSERT INTO `currency` (`currency`, `symbol`, `timestamp`, `rate`, active) VALUES ('CAD','$','2009-01-23 08:15:20',6.157690, 0); INSERT INTO `currency` (`currency`, `symbol`, `timestamp`, `rate`, active) VALUES ('EUR','€','2009-01-23 08:15:20',9.852920, 0); -- 1.7.9.5