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

(-)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 @ 2017-07-03 15:35:15
100
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wRSLGcTo92mEydJ3iBm1uA
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 (-93 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 @ 2017-07-03 15:35:15
88
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mpcQmnxL15ai/pDKxxYmPw
89
90
91
# You can replace this text with custom content, and it will be preserved on regeneration
92
1;
93
- 

Return to bug 18928