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

(-)a/Koha/Schema/Result/Branch.pm (-32 / +2 lines)
Lines 286-306 __PACKAGE__->has_many( Link Here
286
  { cascade_copy => 0, cascade_delete => 0 },
286
  { cascade_copy => 0, cascade_delete => 0 },
287
);
287
);
288
288
289
=head2 branch_item_rules
290
291
Type: has_many
292
293
Related object: L<Koha::Schema::Result::BranchItemRule>
294
295
=cut
296
297
__PACKAGE__->has_many(
298
  "branch_item_rules",
299
  "Koha::Schema::Result::BranchItemRule",
300
  { "foreign.branchcode" => "self.branchcode" },
301
  { cascade_copy => 0, cascade_delete => 0 },
302
);
303
304
=head2 branches_overdrive
289
=head2 branches_overdrive
305
290
306
Type: might_have
291
Type: might_have
Lines 466-486 __PACKAGE__->has_many( Link Here
466
  { cascade_copy => 0, cascade_delete => 0 },
451
  { cascade_copy => 0, cascade_delete => 0 },
467
);
452
);
468
453
469
=head2 default_branch_circ_rule
470
471
Type: might_have
472
473
Related object: L<Koha::Schema::Result::DefaultBranchCircRule>
474
475
=cut
476
477
__PACKAGE__->might_have(
478
  "default_branch_circ_rule",
479
  "Koha::Schema::Result::DefaultBranchCircRule",
480
  { "foreign.branchcode" => "self.branchcode" },
481
  { cascade_copy => 0, cascade_delete => 0 },
482
);
483
484
=head2 edifact_eans
454
=head2 edifact_eans
485
455
486
Type: has_many
456
Type: has_many
Lines 647-654 __PACKAGE__->has_many( Link Here
647
);
617
);
648
618
649
619
650
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-12-06 15:22:30
620
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-12-06 15:28:54
651
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:y6GFWRKodrYvhKbHKt1W4w
621
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bnqgMA3GZz2n/mrpLyQFVg
652
622
653
623
654
# You can replace this text with custom code or comments, and it will be preserved on regeneration
624
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/BranchItemRule.pm (-130 lines)
Lines 1-130 Link Here
1
use utf8;
2
package Koha::Schema::Result::BranchItemRule;
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::BranchItemRule
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<branch_item_rules>
19
20
=cut
21
22
__PACKAGE__->table("branch_item_rules");
23
24
=head1 ACCESSORS
25
26
=head2 branchcode
27
28
  data_type: 'varchar'
29
  is_foreign_key: 1
30
  is_nullable: 0
31
  size: 10
32
33
=head2 itemtype
34
35
  data_type: 'varchar'
36
  is_foreign_key: 1
37
  is_nullable: 0
38
  size: 10
39
40
=head2 holdallowed
41
42
  data_type: 'tinyint'
43
  is_nullable: 1
44
45
=head2 hold_fulfillment_policy
46
47
  data_type: 'enum'
48
  default_value: 'any'
49
  extra: {list => ["any","homebranch","holdingbranch"]}
50
  is_nullable: 0
51
52
=head2 returnbranch
53
54
  data_type: 'varchar'
55
  is_nullable: 1
56
  size: 15
57
58
=cut
59
60
__PACKAGE__->add_columns(
61
  "branchcode",
62
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
63
  "itemtype",
64
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
65
  "holdallowed",
66
  { data_type => "tinyint", is_nullable => 1 },
67
  "hold_fulfillment_policy",
68
  {
69
    data_type => "enum",
70
    default_value => "any",
71
    extra => { list => ["any", "homebranch", "holdingbranch"] },
72
    is_nullable => 0,
73
  },
74
  "returnbranch",
75
  { data_type => "varchar", is_nullable => 1, size => 15 },
76
);
77
78
=head1 PRIMARY KEY
79
80
=over 4
81
82
=item * L</itemtype>
83
84
=item * L</branchcode>
85
86
=back
87
88
=cut
89
90
__PACKAGE__->set_primary_key("itemtype", "branchcode");
91
92
=head1 RELATIONS
93
94
=head2 branchcode
95
96
Type: belongs_to
97
98
Related object: L<Koha::Schema::Result::Branch>
99
100
=cut
101
102
__PACKAGE__->belongs_to(
103
  "branchcode",
104
  "Koha::Schema::Result::Branch",
105
  { branchcode => "branchcode" },
106
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
107
);
108
109
=head2 itemtype
110
111
Type: belongs_to
112
113
Related object: L<Koha::Schema::Result::Itemtype>
114
115
=cut
116
117
__PACKAGE__->belongs_to(
118
  "itemtype",
119
  "Koha::Schema::Result::Itemtype",
120
  { itemtype => "itemtype" },
121
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
122
);
123
124
125
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-29 10:32:00
126
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yMmvhDqtrKcNeDU9ZJCQZw
127
128
129
# You can replace this text with custom content, and it will be preserved on regeneration
130
1;
(-)a/Koha/Schema/Result/DefaultBranchCircRule.pm (-104 lines)
Lines 1-104 Link Here
1
use utf8;
2
package Koha::Schema::Result::DefaultBranchCircRule;
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::DefaultBranchCircRule
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<default_branch_circ_rules>
19
20
=cut
21
22
__PACKAGE__->table("default_branch_circ_rules");
23
24
=head1 ACCESSORS
25
26
=head2 branchcode
27
28
  data_type: 'varchar'
29
  is_foreign_key: 1
30
  is_nullable: 0
31
  size: 10
32
33
=head2 holdallowed
34
35
  data_type: 'tinyint'
36
  is_nullable: 1
37
38
=head2 hold_fulfillment_policy
39
40
  data_type: 'enum'
41
  default_value: 'any'
42
  extra: {list => ["any","homebranch","holdingbranch"]}
43
  is_nullable: 0
44
45
=head2 returnbranch
46
47
  data_type: 'varchar'
48
  is_nullable: 1
49
  size: 15
50
51
=cut
52
53
__PACKAGE__->add_columns(
54
  "branchcode",
55
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
56
  "holdallowed",
57
  { data_type => "tinyint", is_nullable => 1 },
58
  "hold_fulfillment_policy",
59
  {
60
    data_type => "enum",
61
    default_value => "any",
62
    extra => { list => ["any", "homebranch", "holdingbranch"] },
63
    is_nullable => 0,
64
  },
65
  "returnbranch",
66
  { data_type => "varchar", is_nullable => 1, size => 15 },
67
);
68
69
=head1 PRIMARY KEY
70
71
=over 4
72
73
=item * L</branchcode>
74
75
=back
76
77
=cut
78
79
__PACKAGE__->set_primary_key("branchcode");
80
81
=head1 RELATIONS
82
83
=head2 branchcode
84
85
Type: belongs_to
86
87
Related object: L<Koha::Schema::Result::Branch>
88
89
=cut
90
91
__PACKAGE__->belongs_to(
92
  "branchcode",
93
  "Koha::Schema::Result::Branch",
94
  { branchcode => "branchcode" },
95
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
96
);
97
98
99
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-12-06 15:22:30
100
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:c82nLHhC2nHg71Ko09+8Ig
101
102
103
# You can replace this text with custom content, and it will be preserved on regeneration
104
1;
(-)a/Koha/Schema/Result/DefaultBranchItemRule.pm (-104 lines)
Lines 1-104 Link Here
1
use utf8;
2
package Koha::Schema::Result::DefaultBranchItemRule;
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::DefaultBranchItemRule
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<default_branch_item_rules>
19
20
=cut
21
22
__PACKAGE__->table("default_branch_item_rules");
23
24
=head1 ACCESSORS
25
26
=head2 itemtype
27
28
  data_type: 'varchar'
29
  is_foreign_key: 1
30
  is_nullable: 0
31
  size: 10
32
33
=head2 holdallowed
34
35
  data_type: 'tinyint'
36
  is_nullable: 1
37
38
=head2 hold_fulfillment_policy
39
40
  data_type: 'enum'
41
  default_value: 'any'
42
  extra: {list => ["any","homebranch","holdingbranch"]}
43
  is_nullable: 0
44
45
=head2 returnbranch
46
47
  data_type: 'varchar'
48
  is_nullable: 1
49
  size: 15
50
51
=cut
52
53
__PACKAGE__->add_columns(
54
  "itemtype",
55
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
56
  "holdallowed",
57
  { data_type => "tinyint", is_nullable => 1 },
58
  "hold_fulfillment_policy",
59
  {
60
    data_type => "enum",
61
    default_value => "any",
62
    extra => { list => ["any", "homebranch", "holdingbranch"] },
63
    is_nullable => 0,
64
  },
65
  "returnbranch",
66
  { data_type => "varchar", is_nullable => 1, size => 15 },
67
);
68
69
=head1 PRIMARY KEY
70
71
=over 4
72
73
=item * L</itemtype>
74
75
=back
76
77
=cut
78
79
__PACKAGE__->set_primary_key("itemtype");
80
81
=head1 RELATIONS
82
83
=head2 itemtype
84
85
Type: belongs_to
86
87
Related object: L<Koha::Schema::Result::Itemtype>
88
89
=cut
90
91
__PACKAGE__->belongs_to(
92
  "itemtype",
93
  "Koha::Schema::Result::Itemtype",
94
  { itemtype => "itemtype" },
95
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
96
);
97
98
99
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-29 10:32:00
100
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+dEOJjQezQNGILloXC2HfQ
101
102
103
# You can replace this text with custom content, and it will be preserved on regeneration
104
1;
(-)a/Koha/Schema/Result/DefaultCircRule.pm (-92 lines)
Lines 1-92 Link Here
1
use utf8;
2
package Koha::Schema::Result::DefaultCircRule;
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::DefaultCircRule
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<default_circ_rules>
19
20
=cut
21
22
__PACKAGE__->table("default_circ_rules");
23
24
=head1 ACCESSORS
25
26
=head2 singleton
27
28
  data_type: 'enum'
29
  default_value: 'singleton'
30
  extra: {list => ["singleton"]}
31
  is_nullable: 0
32
33
=head2 holdallowed
34
35
  data_type: 'integer'
36
  is_nullable: 1
37
38
=head2 hold_fulfillment_policy
39
40
  data_type: 'enum'
41
  default_value: 'any'
42
  extra: {list => ["any","homebranch","holdingbranch"]}
43
  is_nullable: 0
44
45
=head2 returnbranch
46
47
  data_type: 'varchar'
48
  is_nullable: 1
49
  size: 15
50
51
=cut
52
53
__PACKAGE__->add_columns(
54
  "singleton",
55
  {
56
    data_type => "enum",
57
    default_value => "singleton",
58
    extra => { list => ["singleton"] },
59
    is_nullable => 0,
60
  },
61
  "holdallowed",
62
  { data_type => "integer", is_nullable => 1 },
63
  "hold_fulfillment_policy",
64
  {
65
    data_type => "enum",
66
    default_value => "any",
67
    extra => { list => ["any", "homebranch", "holdingbranch"] },
68
    is_nullable => 0,
69
  },
70
  "returnbranch",
71
  { data_type => "varchar", is_nullable => 1, size => 15 },
72
);
73
74
=head1 PRIMARY KEY
75
76
=over 4
77
78
=item * L</singleton>
79
80
=back
81
82
=cut
83
84
__PACKAGE__->set_primary_key("singleton");
85
86
87
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-12-06 15:22:30
88
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Evgaod0Xff86V1frQ3y6kw
89
90
91
# You can replace this text with custom content, and it will be preserved on regeneration
92
1;
(-)a/Koha/Schema/Result/Itemtype.pm (-33 / +2 lines)
Lines 150-170 __PACKAGE__->set_primary_key("itemtype"); Link Here
150
150
151
=head1 RELATIONS
151
=head1 RELATIONS
152
152
153
=head2 branch_item_rules
154
155
Type: has_many
156
157
Related object: L<Koha::Schema::Result::BranchItemRule>
158
159
=cut
160
161
__PACKAGE__->has_many(
162
  "branch_item_rules",
163
  "Koha::Schema::Result::BranchItemRule",
164
  { "foreign.itemtype" => "self.itemtype" },
165
  { cascade_copy => 0, cascade_delete => 0 },
166
);
167
168
=head2 circulation_rules
153
=head2 circulation_rules
169
154
170
Type: has_many
155
Type: has_many
Lines 180-200 __PACKAGE__->has_many( Link Here
180
  { cascade_copy => 0, cascade_delete => 0 },
165
  { cascade_copy => 0, cascade_delete => 0 },
181
);
166
);
182
167
183
=head2 default_branch_item_rule
184
185
Type: might_have
186
187
Related object: L<Koha::Schema::Result::DefaultBranchItemRule>
188
189
=cut
190
191
__PACKAGE__->might_have(
192
  "default_branch_item_rule",
193
  "Koha::Schema::Result::DefaultBranchItemRule",
194
  { "foreign.itemtype" => "self.itemtype" },
195
  { cascade_copy => 0, cascade_delete => 0 },
196
);
197
198
=head2 old_reserves
168
=head2 old_reserves
199
169
200
Type: has_many
170
Type: has_many
Lines 226-233 __PACKAGE__->has_many( Link Here
226
);
196
);
227
197
228
198
229
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-05 14:29:17
199
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-12-06 15:28:54
230
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GthTVMBLO5Zi6NU3up3m+A
200
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/cDUDt1Gi6qs9LNWFj4WYQ
231
201
232
# Use the ItemtypeLocalization view to create the join on localization
202
# Use the ItemtypeLocalization view to create the join on localization
233
our $LANGUAGE;
203
our $LANGUAGE;
234
- 

Return to bug 18928