View | Details | Raw Unified | Return to bug 17216
Collapse All | Expand All

(-)a/Koha/Schema/Result/AuthorisedValue.pm (-17 / +2 lines)
Lines 107-130 __PACKAGE__->has_many( Link Here
107
  { cascade_copy => 0, cascade_delete => 0 },
107
  { cascade_copy => 0, cascade_delete => 0 },
108
);
108
);
109
109
110
=head2 items_search_fields
111
110
112
Type: has_many
111
# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-08-29 11:50:45
113
112
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VtpTwYpCMG3VVmsrQspdxw
114
Related object: L<Koha::Schema::Result::ItemsSearchField>
115
116
=cut
117
118
__PACKAGE__->has_many(
119
  "items_search_fields",
120
  "Koha::Schema::Result::ItemsSearchField",
121
  { "foreign.authorised_values_category" => "self.category" },
122
  { cascade_copy => 0, cascade_delete => 0 },
123
);
124
125
126
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-02-05 15:20:11
127
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GS7UBpk66HAhBptwrpKR7Q
128
113
129
114
130
# You can replace this text with custom content, and it will be preserved on regeneration
115
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/AuthorisedValueCategory.pm (+74 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::AuthorisedValueCategory;
3
4
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7
=head1 NAME
8
9
Koha::Schema::Result::AuthorisedValueCategory
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<authorised_value_categories>
19
20
=cut
21
22
__PACKAGE__->table("authorised_value_categories");
23
24
=head1 ACCESSORS
25
26
=head2 category_name
27
28
  data_type: 'varchar'
29
  is_nullable: 0
30
  size: 80
31
32
=cut
33
34
__PACKAGE__->add_columns(
35
  "category_name",
36
  { data_type => "varchar", is_nullable => 0, size => 80 },
37
);
38
39
=head1 PRIMARY KEY
40
41
=over 4
42
43
=item * L</category_name>
44
45
=back
46
47
=cut
48
49
__PACKAGE__->set_primary_key("category_name");
50
51
=head1 RELATIONS
52
53
=head2 items_search_fields
54
55
Type: has_many
56
57
Related object: L<Koha::Schema::Result::ItemsSearchField>
58
59
=cut
60
61
__PACKAGE__->has_many(
62
  "items_search_fields",
63
  "Koha::Schema::Result::ItemsSearchField",
64
  { "foreign.authorised_values_category" => "self.category_name" },
65
  { cascade_copy => 0, cascade_delete => 0 },
66
);
67
68
69
# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-08-29 11:50:45
70
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fF91wGF5/xHvp8JX5fAAtw
71
72
73
# You can replace this text with custom code or comments, and it will be preserved on regeneration
74
1;
(-)a/Koha/Schema/Result/ItemsSearchField.pm (-8 / +7 lines)
Lines 52-58 __PACKAGE__->table("items_search_fields"); Link Here
52
  data_type: 'varchar'
52
  data_type: 'varchar'
53
  is_foreign_key: 1
53
  is_foreign_key: 1
54
  is_nullable: 1
54
  is_nullable: 1
55
  size: 32
55
  size: 80
56
56
57
=cut
57
=cut
58
58
Lines 66-72 __PACKAGE__->add_columns( Link Here
66
  "tagsubfield",
66
  "tagsubfield",
67
  { data_type => "char", is_nullable => 1, size => 1 },
67
  { data_type => "char", is_nullable => 1, size => 1 },
68
  "authorised_values_category",
68
  "authorised_values_category",
69
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 32 },
69
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 80 },
70
);
70
);
71
71
72
=head1 PRIMARY KEY
72
=head1 PRIMARY KEY
Lines 87-100 __PACKAGE__->set_primary_key("name"); Link Here
87
87
88
Type: belongs_to
88
Type: belongs_to
89
89
90
Related object: L<Koha::Schema::Result::AuthorisedValue>
90
Related object: L<Koha::Schema::Result::AuthorisedValueCategory>
91
91
92
=cut
92
=cut
93
93
94
__PACKAGE__->belongs_to(
94
__PACKAGE__->belongs_to(
95
  "authorised_values_category",
95
  "authorised_values_category",
96
  "Koha::Schema::Result::AuthorisedValue",
96
  "Koha::Schema::Result::AuthorisedValueCategory",
97
  { category => "authorised_values_category" },
97
  { category_name => "authorised_values_category" },
98
  {
98
  {
99
    is_deferrable => 1,
99
    is_deferrable => 1,
100
    join_type     => "LEFT",
100
    join_type     => "LEFT",
Lines 104-111 __PACKAGE__->belongs_to( Link Here
104
);
104
);
105
105
106
106
107
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-02-05 15:20:11
107
# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-08-29 11:50:45
108
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oHoTxnECC/702vwFO4vdqw
108
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5iB4gfxlZLHw2fqwoK/Wtg
109
109
110
110
111
# You can replace this text with custom code or comments, and it will be preserved on regeneration
111
# You can replace this text with custom code or comments, and it will be preserved on regeneration
112
- 

Return to bug 17216