From e9a0f41be4f6c2d5d44c071b253c32e969e4d09a Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 7 Sep 2021 08:09:39 -0300 Subject: [PATCH] Bug 28959: DBIC update Signed-off-by: David Nind --- Koha/Schema/Result/Virtualshelve.pm | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/Koha/Schema/Result/Virtualshelve.pm b/Koha/Schema/Result/Virtualshelve.pm index 4fa1265959..9aaae8d602 100644 --- a/Koha/Schema/Result/Virtualshelve.pm +++ b/Koha/Schema/Result/Virtualshelve.pm @@ -47,13 +47,13 @@ name of the list foreign key linking to the borrowers table (using borrowernumber) for the creator of this list (changed from varchar(80) to int) -=head2 category +=head2 public - data_type: 'varchar' - is_nullable: 1 - size: 1 + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 -type of list (private [1], public [2]) +If the list is public =head2 sortfield @@ -106,8 +106,8 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_nullable => 1, size => 255 }, "owner", { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, - "category", - { data_type => "varchar", is_nullable => 1, size => 1 }, + "public", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, "sortfield", { data_type => "varchar", @@ -199,8 +199,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:6ZQ6kL/0DzyOMymz+4+LhA +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-09-07 11:08:02 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QH2/kScjb+lwTwrChjem1Q sub koha_object_class { 'Koha::Virtualshelf'; @@ -209,4 +209,8 @@ sub koha_objects_class { 'Koha::Virtualshelves'; } +__PACKAGE__->add_columns( + '+public' => { is_boolean => 1 }, +); + 1; -- 2.20.1