From 6eed09a604da9234db12b683093413822fc08051 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 9 Nov 2021 18:45:16 +0000 Subject: [PATCH] Bug 17170: DO NOT PUSH - Schema Updates --- Koha/Schema/Result/SearchFilter.pm | 99 ++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 Koha/Schema/Result/SearchFilter.pm diff --git a/Koha/Schema/Result/SearchFilter.pm b/Koha/Schema/Result/SearchFilter.pm new file mode 100644 index 0000000000..222d7da6fd --- /dev/null +++ b/Koha/Schema/Result/SearchFilter.pm @@ -0,0 +1,99 @@ +use utf8; +package Koha::Schema::Result::SearchFilter; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + +=head1 NAME + +Koha::Schema::Result::SearchFilter + +=cut + +use strict; +use warnings; + +use base 'DBIx::Class::Core'; + +=head1 TABLE: C + +=cut + +__PACKAGE__->table("search_filters"); + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + is_auto_increment: 1 + is_nullable: 0 + +=head2 name + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 query + + data_type: 'mediumtext' + is_nullable: 1 + +=head2 limits + + data_type: 'mediumtext' + is_nullable: 1 + +=head2 opac + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +whether this filter is shown on OPAC + +=head2 staff_client + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +whether this filter is shown in staff client + +=cut + +__PACKAGE__->add_columns( + "id", + { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, + "name", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "query", + { data_type => "mediumtext", is_nullable => 1 }, + "limits", + { data_type => "mediumtext", is_nullable => 1 }, + "opac", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "staff_client", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, +); + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + +__PACKAGE__->set_primary_key("id"); + + +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-04-07 10:58:32 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QrBHiG/67sgZ5TLSvy731g + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; -- 2.30.2