Bugzilla – Attachment 35579 Details for
Bug 11954
Clean up currency default files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11954 - Clean up currency default files
Bug-11954---Clean-up-currency-default-files.patch (text/plain), 2.81 KB, created by
Marcel de Rooy
on 2015-01-28 13:25:29 UTC
(
hide
)
Description:
Bug 11954 - Clean up currency default files
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2015-01-28 13:25:29 UTC
Size:
2.81 KB
patch
obsolete
>From 427089b0a7a64bb3308287cad477966893b3f8b1 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Wed, 19 Nov 2014 13:28:12 -0500 >Subject: [PATCH] Bug 11954 - Clean up currency default files >Content-Type: text/plain; charset=utf-8 > >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. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../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, 0 insertions(+), 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.7.6
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11954
:
33688
|
35579
|
35618