From b2636dee8ac2dc410c531ec8313fcbbd4b3d826d Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Tue, 6 May 2025 16:23:28 +0000 Subject: [PATCH] Bug 39835: DBIC schema update Signed-off-by: Katrin Fischer --- Koha/Schema/Result/ColumnsSetting.pm | 12 ++++++------ Koha/Schema/Result/Issue.pm | 12 ++++++------ Koha/Schema/Result/OldIssue.pm | 12 ++++++------ Koha/Schema/Result/Overduerule.pm | 18 ++++++++---------- 4 files changed, 26 insertions(+), 28 deletions(-) diff --git a/Koha/Schema/Result/ColumnsSetting.pm b/Koha/Schema/Result/ColumnsSetting.pm index a2f50322dc..f92da761cd 100644 --- a/Koha/Schema/Result/ColumnsSetting.pm +++ b/Koha/Schema/Result/ColumnsSetting.pm @@ -49,13 +49,13 @@ __PACKAGE__->table("columns_settings"); =head2 cannot_be_toggled - data_type: 'integer' + data_type: 'tinyint' default_value: 0 is_nullable: 0 =head2 is_hidden - data_type: 'integer' + data_type: 'tinyint' default_value: 0 is_nullable: 0 @@ -71,9 +71,9 @@ __PACKAGE__->add_columns( "columnname", { data_type => "varchar", is_nullable => 0, size => 255 }, "cannot_be_toggled", - { data_type => "integer", default_value => 0, is_nullable => 0 }, + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, "is_hidden", - { data_type => "integer", default_value => 0, is_nullable => 0 }, + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, ); =head1 PRIMARY KEY @@ -95,8 +95,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("module", "page", "tablename", "columnname"); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-12-12 16:06:36 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IhREpW2PRxxFF9EYOGt2Qg +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-05-06 16:22:12 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:R8o+1pqMYgYJE/eXivpn1w __PACKAGE__->add_columns( '+cannot_be_toggled' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Issue.pm b/Koha/Schema/Result/Issue.pm index c1139ea51d..f71dd50882 100644 --- a/Koha/Schema/Result/Issue.pm +++ b/Koha/Schema/Result/Issue.pm @@ -146,7 +146,7 @@ date the item was checked out or issued =head2 onsite_checkout - data_type: 'integer' + data_type: 'tinyint' default_value: 0 is_nullable: 0 @@ -169,7 +169,7 @@ datetime of issue note (yyyy-mm-dd hh:mm::ss) =head2 noteseen - data_type: 'integer' + data_type: 'tinyint' is_nullable: 1 describes whether checkout note has been seen 1, not been seen 0 or doesn't exist null @@ -229,7 +229,7 @@ __PACKAGE__->add_columns( is_nullable => 1, }, "onsite_checkout", - { data_type => "integer", default_value => 0, is_nullable => 0 }, + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, "note", { data_type => "longtext", is_nullable => 1 }, "notedate", @@ -239,7 +239,7 @@ __PACKAGE__->add_columns( is_nullable => 1, }, "noteseen", - { data_type => "integer", is_nullable => 1 }, + { data_type => "tinyint", is_nullable => 1 }, ); =head1 PRIMARY KEY @@ -336,8 +336,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-11-14 13:08:04 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Azy+cns0/GJMwsXWJdkolg +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-05-06 16:22:12 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sCGlwnT9B7Mn1k80Gme6hw __PACKAGE__->add_columns( '+auto_renew' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/OldIssue.pm b/Koha/Schema/Result/OldIssue.pm index aed754cd5a..870922d86f 100644 --- a/Koha/Schema/Result/OldIssue.pm +++ b/Koha/Schema/Result/OldIssue.pm @@ -145,7 +145,7 @@ date the item was checked out or issued =head2 onsite_checkout - data_type: 'integer' + data_type: 'tinyint' default_value: 0 is_nullable: 0 @@ -168,7 +168,7 @@ datetime of issue note (yyyy-mm-dd hh:mm::ss) =head2 noteseen - data_type: 'integer' + data_type: 'tinyint' is_nullable: 1 describes whether checkout note has been seen 1, not been seen 0 or doesn't exist null @@ -228,7 +228,7 @@ __PACKAGE__->add_columns( is_nullable => 1, }, "onsite_checkout", - { data_type => "integer", default_value => 0, is_nullable => 0 }, + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, "note", { data_type => "longtext", is_nullable => 1 }, "notedate", @@ -238,7 +238,7 @@ __PACKAGE__->add_columns( is_nullable => 1, }, "noteseen", - { data_type => "integer", is_nullable => 1 }, + { data_type => "tinyint", is_nullable => 1 }, ); =head1 PRIMARY KEY @@ -331,8 +331,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-11-14 13:08:04 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bA69lRnTfAccileHjykFgw +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-05-06 16:22:12 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bO+nRkR4QDXrb5wmEOz9mw __PACKAGE__->add_columns( '+auto_renew' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/Overduerule.pm b/Koha/Schema/Result/Overduerule.pm index 9a213e92fa..85be1701a5 100644 --- a/Koha/Schema/Result/Overduerule.pm +++ b/Koha/Schema/Result/Overduerule.pm @@ -66,10 +66,9 @@ foreign key from the letter table to define which notice should be sent as the f =head2 debarred1 - data_type: 'varchar' + data_type: 'tinyint' default_value: 0 is_nullable: 1 - size: 1 is the patron restricted when the first notice is sent (1 for yes, 0 for no) @@ -82,10 +81,9 @@ number of days after the item is overdue that the second notice is sent =head2 debarred2 - data_type: 'varchar' + data_type: 'tinyint' default_value: 0 is_nullable: 1 - size: 1 is the patron restricted when the second notice is sent (1 for yes, 0 for no) @@ -114,7 +112,7 @@ foreign key from the letter table to define which notice should be sent as the t =head2 debarred3 - data_type: 'integer' + data_type: 'tinyint' default_value: 0 is_nullable: 1 @@ -134,11 +132,11 @@ __PACKAGE__->add_columns( "letter1", { data_type => "varchar", is_nullable => 1, size => 20 }, "debarred1", - { data_type => "varchar", default_value => 0, is_nullable => 1, size => 1 }, + { data_type => "tinyint", default_value => 0, is_nullable => 1 }, "delay2", { data_type => "integer", is_nullable => 1 }, "debarred2", - { data_type => "varchar", default_value => 0, is_nullable => 1, size => 1 }, + { data_type => "tinyint", default_value => 0, is_nullable => 1 }, "letter2", { data_type => "varchar", is_nullable => 1, size => 20 }, "delay3", @@ -146,7 +144,7 @@ __PACKAGE__->add_columns( "letter3", { data_type => "varchar", is_nullable => 1, size => 20 }, "debarred3", - { data_type => "integer", default_value => 0, is_nullable => 1 }, + { data_type => "tinyint", default_value => 0, is_nullable => 1 }, ); =head1 PRIMARY KEY @@ -195,8 +193,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pORigxtC5qztZWHI29mZ/g +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-05-06 16:22:12 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/1ZL98jFwZ5PyG4sYSziiA __PACKAGE__->add_columns( '+debarred1' => { is_boolean => 1 },