Koha/installer/data/mysql
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
..
atomicupdate Bug 7475: Update configuration 2012-09-19 17:15:25 +02:00
de-DE Bug 7567 - Clean up sample news files 2014-04-07 18:05:38 +00:00
en Bug 7567 - Clean up sample news files 2014-04-07 18:05:38 +00:00
es-ES Bug 7567 - Clean up sample news files 2014-04-07 18:05:38 +00:00
fr-FR Bug 7567 - Clean up sample news files 2014-04-07 18:05:38 +00:00
it-IT Bug 7567 - Clean up sample news files 2014-04-07 18:05:38 +00:00
nb-NO Bug 7567 - Clean up sample news files 2014-04-07 18:05:38 +00:00
pl-PL Bug 7567 - Clean up sample news files 2014-04-07 18:05:38 +00:00
ru-RU Bug 7567 - Clean up sample news files 2014-04-07 18:05:38 +00:00
uk-UA Bug 7567 - Clean up sample news files 2014-04-07 18:05:38 +00:00
backfill_statistics.pl Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00
kohastructure.sql Bug 11928 - Remove unused table aqorderdelivery 2014-03-13 14:37:16 +00:00
labels_upgrade.pl Bug 2505 - Add commented use warnings where missing in the installer/ directory 2010-04-21 20:26:28 +12:00
patroncards_upgrade.pl Bug 2505 - Add commented use warnings where missing in the installer/ directory 2010-04-21 20:26:28 +12:00
sysprefs.sql Bug 11751: remove dead code related to handling members of institution patrons 2014-03-11 15:05:14 +00:00
update22to30.pl Bug 11398: A typo occurred with occured 2014-01-02 15:12:48 +00:00
updatedatabase.pl Bug 11973: DBRev 3.15.00.026 2014-03-22 12:57:30 +00:00