Bugzilla – Attachment 70562 Details for
Bug 13560
MARC modification templates - Add an 'Add' option
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13560 - Database changes
Bug-13560---Database-changes.patch (text/plain), 1.82 KB, created by
Nick Clemens (kidclamp)
on 2018-01-16 16:27:40 UTC
(
hide
)
Description:
Bug 13560 - Database changes
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2018-01-16 16:27:40 UTC
Size:
1.82 KB
patch
obsolete
>From 42d5a49de71a38729349eab82fd66d67c9d38649 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 16 Jan 2018 16:14:49 +0000 >Subject: [PATCH] Bug 13560 - Database changes > >--- > installer/data/mysql/atomicupdate/bug13560.perl | 6 ++++++ > installer/data/mysql/kohastructure.sql | 2 +- > 2 files changed, 7 insertions(+), 1 deletion(-) > create mode 100644 installer/data/mysql/atomicupdate/bug13560.perl > >diff --git a/installer/data/mysql/atomicupdate/bug13560.perl b/installer/data/mysql/atomicupdate/bug13560.perl >new file mode 100644 >index 0000000..81e39bc >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug13560.perl >@@ -0,0 +1,6 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ $dbh->do( "ALTER TABLE marc_modification_template_actions CHANGE action action ENUM('delete_field','add_field','update_field','move_field','copy_field','copy_and_replace_field')" ); >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 13560 - need an add option in marc modification templates)\n"; >+} >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index f031503..5f33256 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -3568,7 +3568,7 @@ CREATE TABLE IF NOT EXISTS marc_modification_template_actions ( > mmta_id int(11) NOT NULL AUTO_INCREMENT, > template_id int(11) NOT NULL, > ordering int(3) NOT NULL, >- action ENUM('delete_field','update_field','move_field','copy_field','copy_and_replace_field') NOT NULL, >+ action ENUM('delete_field','add_field','update_field','move_field','copy_field','copy_and_replace_field') NOT NULL, > field_number smallint(6) NOT NULL DEFAULT '0', > from_field varchar(3) NOT NULL, > from_subfield varchar(1) DEFAULT NULL, >-- >2.1.4
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 13560
:
35108
|
64808
|
68540
|
70562
|
70563
|
70564
|
70613
|
71115
|
71116
|
71117
|
75584
|
75585
|
75586