Bugzilla – Attachment 159486 Details for
Bug 35471
Automatically select child MARC framework when adding child records
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35471: Add column parent_frameworkcode to table biblio_framework
Bug-35471-Add-column-parentframeworkcode-to-table-.patch (text/plain), 1.47 KB, created by
Lari Taskula
on 2023-12-01 23:07:23 UTC
(
hide
)
Description:
Bug 35471: Add column parent_frameworkcode to table biblio_framework
Filename:
MIME Type:
Creator:
Lari Taskula
Created:
2023-12-01 23:07:23 UTC
Size:
1.47 KB
patch
obsolete
>From 08fddb58dae4503de02d6e89d1ef0c7ed983b77f Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@hypernova.fi> >Date: Fri, 1 Dec 2023 16:29:46 +0000 >Subject: [PATCH] Bug 35471: Add column parent_frameworkcode to table > biblio_framework > >Sponsored-by: Hypernova Oy >--- > .../add_framework_parent_field.pl | 21 +++++++++++++++++++ > 1 file changed, 21 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/add_framework_parent_field.pl > >diff --git a/installer/data/mysql/atomicupdate/add_framework_parent_field.pl b/installer/data/mysql/atomicupdate/add_framework_parent_field.pl >new file mode 100755 >index 0000000000..a6fbf4ac74 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/add_framework_parent_field.pl >@@ -0,0 +1,21 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "BUG_NUMBER", >+ description => "A single line description", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ # Do you stuffs here >+ $dbh->do(q{ >+ ALTER TABLE biblio_framework >+ ADD COLUMN parent_frameworkcode VARCHAR(4) DEFAULT NULL AFTER frameworkcode, >+ ADD CONSTRAINT biblio_framework_fk_1 FOREIGN KEY (parent_frameworkcode) REFERENCES biblio_framework (frameworkcode) ON DELETE SET NULL ON UPDATE CASCADE >+ }); >+ >+ # Print useful stuff here >+ # tables >+ say $out "Added column 'parent_frameworkcode' to table 'biblio_framework'"; >+ }, >+}; >-- >2.34.1
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 35471
:
159486
|
159487
|
159488
|
159489
|
159490
|
159491
|
159492
|
159493
|
159494
|
159495
|
159496
|
159497
|
159498
|
159499
|
159500
|
159567
|
159568
|
159569
|
159570
|
159571
|
159572
|
159573
|
159884