From 03ac9746b7bea8307955bb21d541f0f659efd58a Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 24 Oct 2023 00:54:59 +0000 Subject: [PATCH] Bug 23111: Schema changes --- Koha/Schema/Result/BiblioFramework.pm | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Koha/Schema/Result/BiblioFramework.pm b/Koha/Schema/Result/BiblioFramework.pm index 15755315d2c..cbcad2c211e 100644 --- a/Koha/Schema/Result/BiblioFramework.pm +++ b/Koha/Schema/Result/BiblioFramework.pm @@ -41,6 +41,14 @@ the unique code assigned to the framework the description/name given to the framework +=head2 is_default + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +indicates whether this framework is the default to be used when importing records or editing records with no framework mapped + =cut __PACKAGE__->add_columns( @@ -48,6 +56,8 @@ __PACKAGE__->add_columns( { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 }, "frameworktext", { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, + "is_default", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, ); =head1 PRIMARY KEY @@ -63,8 +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.07049 @ 2023-10-24 00:54:48 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4r+n565/qdQr/ZE/CpfmIg # 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=='') -- 2.30.2