82a36947f7
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>
2 lines
1.3 KiB
SQL
2 lines
1.3 KiB
SQL
INSERT INTO `opac_news` (`title`, `new`, `lang`, `timestamp`, `expirationdate`, `number`) VALUES ('Willkommen bei Koha','Willkommen bei Koha. Koha ist ein vollständiges integriertes Bibliothekssystem. Es wurde ursprünglich in Neuseeland von Katipo Communications Ltd entwickelt und ging im Januar 2000 für den Horowhenua Library Trust zum ersten mal in Produktion. Koha wird heute von einem internationalen Team aus Support-Dienstleistern und Anwendern weiterentwickelt.','koha','2007-10-29 05:25:58','2099-01-10',1),
|
|
('Was kommt jetzt?','Wie geht es weiter, nachdem Sie Koha installiert haben? Hier einige Vorschläge:\r\n<ul>\r\n<li><a href=\"http://koha-community.org/documentation/\">Lesen Sie die Koha-Dokumentation</a></li>\r\n<li><a href=\"http://wiki.koha-community.org\">Lesen oder Schreiben Sie im Koha-Wiki</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">Verfolgen oder beteiligen Sie sich an Diskussionen</a></li>\r\n<li><a href=\"http://bugs.koha-community.org\">Melden Sie Bugs</a></li>\r\n<li><a href=\"http://wiki.koha-community.org/wiki/Version_Control_Using_Git\">Erstellen Sie Fehlerkorrekturen mit GIT (Versionskontrollsystem)</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">Chatten Sie mit Koha-Anwendern und -Entwicklern</a></li>\r\n</ul>\r\n','koha','2007-10-29 05:34:45','2099-01-10',2);
|