Bugzilla – Attachment 161746 Details for
Bug 28869
Optionally restrict authorised values to tinyint
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28869: DBIx schema changes for AuthorisedValueCategory
Bug-28869-DBIx-schema-changes-for-AuthorisedValueC.patch (text/plain), 1.82 KB, created by
Marcel de Rooy
on 2024-02-05 09:51:17 UTC
(
hide
)
Description:
Bug 28869: DBIx schema changes for AuthorisedValueCategory
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-02-05 09:51:17 UTC
Size:
1.82 KB
patch
obsolete
>From 8f848711027b23a27ddfa6b34134e5b5d72471ba Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 29 Jan 2024 10:43:51 +0000 >Subject: [PATCH] Bug 28869: DBIx schema changes for AuthorisedValueCategory >Content-Type: text/plain; charset=utf-8 > >Note: Also adds boolean flag in the custom part! > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > Koha/Schema/Result/AuthorisedValueCategory.pm | 15 ++++++++++++--- > 1 file changed, 12 insertions(+), 3 deletions(-) > >diff --git a/Koha/Schema/Result/AuthorisedValueCategory.pm b/Koha/Schema/Result/AuthorisedValueCategory.pm >index debbdf3aa7..420c7178b0 100644 >--- a/Koha/Schema/Result/AuthorisedValueCategory.pm >+++ b/Koha/Schema/Result/AuthorisedValueCategory.pm >@@ -36,6 +36,12 @@ __PACKAGE__->table("authorised_value_categories"); > default_value: 0 > is_nullable: 1 > >+=head2 is_integer_only >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ > =cut > > __PACKAGE__->add_columns( >@@ -43,6 +49,8 @@ __PACKAGE__->add_columns( > { data_type => "varchar", default_value => "", is_nullable => 0, size => 32 }, > "is_system", > { data_type => "tinyint", default_value => 0, is_nullable => 1 }, >+ "is_integer_only", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, > ); > > =head1 PRIMARY KEY >@@ -105,11 +113,12 @@ __PACKAGE__->has_many( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-04-28 09:07:15 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EfBQNJN5wgpFPlWVP4U+qw >+# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-01-29 10:43:30 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qVFHGnJp7VL2eUR5ZFZvAQ > > __PACKAGE__->add_columns( >- '+is_system' => { is_boolean => 1 }, >+ '+is_system' => { is_boolean => 1 }, >+ '+is_integer_only' => { is_boolean => 1 }, > ); > > sub koha_objects_class { >-- >2.30.2
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 28869
:
161745
|
161746
|
161747
|
161748
|
161749
|
162412
|
162413
|
162414
|
162415
|
162416
|
163996
|
163997
|
163998
|
163999
|
164000
|
164001
|
166697
|
166698
|
166699
|
166700
|
166701
|
166702
|
166906