Main Koha release repository
https://koha-community.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
1.6 KiB
91 lines
1.6 KiB
use utf8;
|
|
package Koha::Schema::Result::ClassSortRule;
|
|
|
|
# Created by DBIx::Class::Schema::Loader
|
|
# DO NOT MODIFY THE FIRST PART OF THIS FILE
|
|
|
|
=head1 NAME
|
|
|
|
Koha::Schema::Result::ClassSortRule
|
|
|
|
=cut
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
use base 'DBIx::Class::Core';
|
|
|
|
=head1 TABLE: C<class_sort_rules>
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->table("class_sort_rules");
|
|
|
|
=head1 ACCESSORS
|
|
|
|
=head2 class_sort_rule
|
|
|
|
data_type: 'varchar'
|
|
default_value: (empty string)
|
|
is_nullable: 0
|
|
size: 10
|
|
|
|
=head2 description
|
|
|
|
data_type: 'mediumtext'
|
|
is_nullable: 1
|
|
|
|
=head2 sort_routine
|
|
|
|
data_type: 'varchar'
|
|
default_value: (empty string)
|
|
is_nullable: 0
|
|
size: 30
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->add_columns(
|
|
"class_sort_rule",
|
|
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
|
|
"description",
|
|
{ data_type => "mediumtext", is_nullable => 1 },
|
|
"sort_routine",
|
|
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 30 },
|
|
);
|
|
|
|
=head1 PRIMARY KEY
|
|
|
|
=over 4
|
|
|
|
=item * L</class_sort_rule>
|
|
|
|
=back
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->set_primary_key("class_sort_rule");
|
|
|
|
=head1 RELATIONS
|
|
|
|
=head2 class_sources
|
|
|
|
Type: has_many
|
|
|
|
Related object: L<Koha::Schema::Result::ClassSource>
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->has_many(
|
|
"class_sources",
|
|
"Koha::Schema::Result::ClassSource",
|
|
{ "foreign.class_sort_rule" => "self.class_sort_rule" },
|
|
{ cascade_copy => 0, cascade_delete => 0 },
|
|
);
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xvTm4GLMb6N4qHQEv8EhSw
|
|
|
|
|
|
# You can replace this text with custom content, and it will be preserved on regeneration
|
|
1;
|
|
|