Bugzilla – Attachment 92054 Details for
Bug 23309
Can't add new subfields to bibliographic frameworks in strict mode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23309: Update DB
Bug-23309-Update-DB.patch (text/plain), 1.66 KB, created by
Jonathan Druart
on 2019-08-08 01:18:07 UTC
(
hide
)
Description:
Bug 23309: Update DB
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-08-08 01:18:07 UTC
Size:
1.66 KB
patch
obsolete
>From 42095f22e38bd4f0f9cd7f5a6deee0a2e818f79c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 7 Aug 2019 20:08:22 -0500 >Subject: [PATCH] Bug 23309: Update DB > >--- > installer/data/mysql/atomicupdate/bug_23309.perl | 10 ++++++++++ > installer/data/mysql/kohastructure.sql | 2 +- > 2 files changed, 11 insertions(+), 1 deletion(-) > create mode 100644 installer/data/mysql/atomicupdate/bug_23309.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_23309.perl b/installer/data/mysql/atomicupdate/bug_23309.perl >new file mode 100644 >index 0000000000..1351199fce >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_23309.perl >@@ -0,0 +1,10 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ >+ $dbh->do(q| >+ ALTER TABLE marc_subfield_structure CHANGE COLUMN hidden hidden TINYINT(1) DEFAULT 8 NOT NULL; >+ |); >+ # Always end with this (adjust the bug info) >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug XXXXX - description)\n"; >+} >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 5016b68c51..f637d27c77 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -1049,7 +1049,7 @@ CREATE TABLE `marc_subfield_structure` ( > `authtypecode` varchar(20) default NULL, > `value_builder` varchar(80) default NULL, > `isurl` tinyint(1) default NULL, >- `hidden` tinyint(1) default NULL, >+ `hidden` tinyint(1) NOT NULL default 8, > `frameworkcode` varchar(4) NOT NULL default '', > `seealso` varchar(1100) default NULL, > `link` varchar(80) default NULL, >-- >2.11.0
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 23309
:
92017
|
92054
|
92055
|
92171
|
92189
|
92190