From 9f1e167f6fe1f28a8195efd3321f9c38d410b813 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 6 Oct 2022 09:05:57 -0300 Subject: [PATCH] Bug 17170: DBIC schema Signed-off-by: Tomas Cohen Arazi --- 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..50d4760d1b --- /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-10-06 12:05:17 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8QjxOudinfXOrLj/KkZc5Q + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; -- 2.39.5