Bugzilla – Attachment 4959 Details for
Bug 6536
Z3950 Search Enhancements: SRU targets and additional XSLT processing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch (db revision) -- rebased
patch.txt (text/plain), 2.91 KB, created by
Marcel de Rooy
on 2011-08-11 08:47:35 UTC
(
hide
)
Description:
Patch (db revision) -- rebased
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2011-08-11 08:47:35 UTC
Size:
2.91 KB
patch
obsolete
>From c959e60497fc556711b48a9883c902516080b0c3 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 30 Jun 2011 09:34:23 +0200 >Subject: [PATCH] 6536: Z3950 Enhancements (DB Revision) >Content-Type: text/plain; charset="utf-8" > >This patch contains db revision for Z3950 enhancements: SRU search targets, MARC conversion and additional XSLT processing. > >August 11, 2011: Rebased. Removed changes for different XXX handling (see Bugzilla 6700). >--- > installer/data/mysql/kohastructure.sql | 10 ++++++---- > installer/data/mysql/updatedatabase.pl | 12 ++++++++++++ > 2 files changed, 18 insertions(+), 4 deletions(-) > >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index e9edf25..ad416c1 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -1987,21 +1987,23 @@ CREATE TABLE `virtualshelfcontents` ( > > DROP TABLE IF EXISTS `z3950servers`; > CREATE TABLE `z3950servers` ( >- `host` varchar(255) default NULL, >+ `host` varchar(255) NOT NULL, > `port` int(11) default NULL, > `db` varchar(255) default NULL, > `userid` varchar(255) default NULL, > `password` varchar(255) default NULL, >- `name` mediumtext, >+ `name` mediumtext NOT NULL, > `id` int(11) NOT NULL auto_increment, > `checked` smallint(6) default NULL, > `rank` int(11) default NULL, >- `syntax` varchar(80) default NULL, >+ `syntax` varchar(80) NOT NULL, > `icon` text, > `position` enum('primary','secondary','') NOT NULL default 'primary', > `type` enum('zed','opensearch') NOT NULL default 'zed', >- `encoding` text default NULL, >+ `encoding` text NOT NULL, > `description` text NOT NULL, >+ `srufields` text, >+ `add_xslt` varchar(255), > PRIMARY KEY (`id`) > ) ENGINE=InnoDB DEFAULT CHARSET=utf8; > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 720bd8c..c50da0c 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -4399,6 +4399,18 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { > SetVersion($DBversion); > } > >+$DBversion = "3.05.00.XXX"; #FIXME: RM, please remove 1 in the if and the # before SetVersion >+if (1||C4::Context->preference("Version") lt TransformToNum($DBversion)) { >+ $dbh->do("ALTER TABLE z3950servers MODIFY COLUMN `host` varchar(255) NOT NULL;"); >+ $dbh->do("ALTER TABLE z3950servers MODIFY COLUMN `name` mediumtext NOT NULL;"); >+ $dbh->do("ALTER TABLE z3950servers MODIFY COLUMN `syntax` varchar(80) NOT NULL;"); >+ $dbh->do("ALTER TABLE z3950servers MODIFY COLUMN `encoding` text NOT NULL;"); >+ $dbh->do("ALTER TABLE z3950servers ADD COLUMN `srufields` text;"); >+ $dbh->do("ALTER TABLE z3950servers ADD COLUMN `add_xslt` varchar(255);"); >+ print "Upgrade to $DBversion done (Bug 6536: Z3950 enhancements)\n"; >+ #SetVersion ($DBversion); #FIXME >+} >+ > =head1 FUNCTIONS > > =head2 DropAllForeignKeys($table) >-- >1.6.0.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 6536
:
4540
|
4541
|
4959
|
6901
|
6919
|
6920
|
6924
|
13462
|
26169
|
26170
|
26171
|
26172
|
29754
|
29755
|
29756
|
29779
|
29780
|
29788
|
29790
|
29791
|
29812
|
29813
|
29814
|
29815
|
29816
|
29817
|
29818
|
29819
|
30189
|
30190
|
30191
|
30192
|
30193
|
30194
|
30900
|
30901
|
30902
|
30903
|
30904
|
30905
|
30906
|
30907
|
30929
|
30930
|
30931
|
30932
|
30933
|
30934
|
30935
|
30936
|
31046
|
31048
|
31137
|
31193
|
31194
|
31195
|
31227
|
31247
|
31248
|
37264