Koha/installer/data/mysql/nb-NO/2-Valgfritt
Mark Tompsett 82a36947f7 Bug 7567 - Clean up sample news files
Some files had truncate. Some files had foreign key checks.
Other files had foreign key checks disabled. Some files gave
the column names expressly, and others assumed the fields in
a particular order. Everything was modified to:
- not truncate
- not say utf8 (because it should already be by default)
- not disable foreign key checks (because it should work)
- expressly name the fields (adding fields shouldn't break it)

TEST PLAN
---------
0) Backup opac_news if you care about your news.
1) open mysql client
2) use the koha database
3) Run the following script
TRUNCATE opac_news;
source ~/kohaclone/installer/data/mysql/uk-UA/optional/sample_news.sql
source ~/kohaclone/installer/data/mysql/it-IT/necessari/sample_news.sql
source ~/kohaclone/installer/data/mysql/de-DE/optional/sample_news.sql
source ~/kohaclone/installer/data/mysql/nb-NO/2-Valgfritt/sample_news.sql
source ~/kohaclone/installer/data/mysql/en/optional/sample_news.sql
source ~/kohaclone/installer/data/mysql/pl-PL/optional/sample_news.sql
source ~/kohaclone/installer/data/mysql/es-ES/optional/sample_news.sql
source ~/kohaclone/installer/data/mysql/ru-RU/optional/sample_news.sql
source ~/kohaclone/installer/data/mysql/fr-FR/2-Optionel/sample_news.sql

- Were there errors?
- Did everything add nicely?
    - Not likely, by expressly stating the idnew field, the news
      items in some files would not be added.

4) apply patch
5) try running the script again

- Were there errors?
- Did everything add nicely?
6) Log into the staff client
7) Tools->News
- Do you see the news items added?

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>

Much needed clean up, making for much more robust and less error prone
sql

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-04-07 18:05:38 +00:00
..
auth_val.sql Bug 10550: Fix database typo wthdrawn 2013-09-08 01:58:41 +00:00
auth_val.txt
marc21_holdings_coded_values.sql
marc21_holdings_coded_values.txt
parameters.sql Bug 11939: set active currency for non-English sample data 2014-03-25 15:03:16 +00:00
parameters.txt
patron_categories.sql
patron_categories.txt
sample_creator_data.sql
sample_creator_data.txt
sample_holidays.sql
sample_holidays.txt
sample_itemtypes.sql Bug 10969: Fix sample itemtypes for translated installers 2013-10-20 18:46:45 +00:00
sample_itemtypes.txt
sample_libraries.sql
sample_libraries.txt
sample_news.sql Bug 7567 - Clean up sample news files 2014-04-07 18:05:38 +00:00
sample_news.txt
sample_patrons.sql
sample_patrons.txt
z3950servers.sql Bug 9498 - Update encoding for Norwegian sample Z39.50 servers 2013-03-30 22:52:27 -04:00
z3950servers.txt