Bugzilla – Attachment 176929 Details for
Bug 32773
Have the ability to have more than 1 Fast Add framework
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32773: schema update [DO NOT PUSH]
Bug-32773-schema-update-DO-NOT-PUSH.patch (text/plain), 2.60 KB, created by
Brendan Lawlor
on 2025-01-22 19:47:48 UTC
(
hide
)
Description:
Bug 32773: schema update [DO NOT PUSH]
Filename:
MIME Type:
Creator:
Brendan Lawlor
Created:
2025-01-22 19:47:48 UTC
Size:
2.60 KB
patch
obsolete
>From e5fc9b06cebd6b9c0b11c11a7008a7a59dfb7a62 Mon Sep 17 00:00:00 2001 >From: Brendan Lawlor <blawlor@clamsnet.org> >Date: Wed, 30 Oct 2024 18:58:53 +0000 >Subject: [PATCH] Bug 32773: schema update [DO NOT PUSH] > >Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> >--- > Koha/Schema/Result/BiblioFramework.pm | 32 +++++++++++++++++++-------- > 1 file changed, 23 insertions(+), 9 deletions(-) > >diff --git a/Koha/Schema/Result/BiblioFramework.pm b/Koha/Schema/Result/BiblioFramework.pm >index 15755315d2..60075d8fb9 100644 >--- a/Koha/Schema/Result/BiblioFramework.pm >+++ b/Koha/Schema/Result/BiblioFramework.pm >@@ -1,4 +1,5 @@ > use utf8; >+ > package Koha::Schema::Result::BiblioFramework; > > # Created by DBIx::Class::Schema::Loader >@@ -41,13 +42,23 @@ the unique code assigned to the framework > > the description/name given to the framework > >+=head2 is_fast_add >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+the ability to be used as a Fast Add framework >+ > =cut > > __PACKAGE__->add_columns( >- "frameworkcode", >- { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 }, >- "frameworktext", >- { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, >+ "frameworkcode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 }, >+ "frameworktext", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, >+ "is_fast_add", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, > ); > > =head1 PRIMARY KEY >@@ -62,9 +73,8 @@ __PACKAGE__->add_columns( > > __PACKAGE__->set_primary_key("frameworkcode"); > >- >-# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YdCNaeY5v1WcfcDuA6xE0w >+# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-10-30 18:56:51 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GTnC4ZNUn+hFvXTjubfBXg > > # FIXME This should not be needed, we need to add the FK at DB level > # It cannot be done now because the default framework (frameworkcode=='') >@@ -72,8 +82,12 @@ __PACKAGE__->set_primary_key("frameworkcode"); > __PACKAGE__->has_many( > "marc_tag_structure", > "Koha::Schema::Result::MarcTagStructure", >- { "foreign.frameworkcode" => "self.frameworkcode"}, >- { cascade_copy => 0, cascade_delete => 0 }, >+ { "foreign.frameworkcode" => "self.frameworkcode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+__PACKAGE__->add_columns( >+ '+is_fast_add' => { is_boolean => 1 }, > ); > > # You can replace this text with custom content, and it will be preserved on regeneration >-- >2.39.5
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 32773
:
173401
|
173417
|
173878
|
173879
|
173880
|
173881
|
173882
|
173883
|
173954
|
173955
|
173956
|
173957
|
173958
|
173959
|
173960
|
173961
|
174028
|
174029
|
174030
|
174031
|
174032
|
174033
|
174034
|
174035
|
176927
|
176928
|
176929
|
176930
|
176931
|
176932
|
176933
|
176934
|
176935
|
177860
|
177861
|
177862
|
177863
|
177864
|
177865
|
177866
|
177867