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

(-)a/Koha/Schema/Result/CirculationRule.pm (-4 / +23 lines)
Lines 50-55 __PACKAGE__->table("circulation_rules"); Link Here
50
  is_nullable: 1
50
  is_nullable: 1
51
  size: 10
51
  size: 10
52
52
53
=head2 checkout_type
54
55
  data_type: 'enum'
56
  extra: {list => ["CHECKOUT","ONSITE"]}
57
  is_nullable: 1
58
53
=head2 rule_name
59
=head2 rule_name
54
60
55
  data_type: 'varchar'
61
  data_type: 'varchar'
Lines 73-78 __PACKAGE__->add_columns( Link Here
73
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
79
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
74
  "itemtype",
80
  "itemtype",
75
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
81
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
82
  "checkout_type",
83
  {
84
    data_type => "enum",
85
    extra => { list => ["CHECKOUT", "ONSITE"] },
86
    is_nullable => 1,
87
  },
76
  "rule_name",
88
  "rule_name",
77
  { data_type => "varchar", is_nullable => 0, size => 32 },
89
  { data_type => "varchar", is_nullable => 0, size => 32 },
78
  "rule_value",
90
  "rule_value",
Lines 103-108 __PACKAGE__->set_primary_key("id"); Link Here
103
115
104
=item * L</itemtype>
116
=item * L</itemtype>
105
117
118
=item * L</checkout_type>
119
106
=item * L</rule_name>
120
=item * L</rule_name>
107
121
108
=back
122
=back
Lines 111-117 __PACKAGE__->set_primary_key("id"); Link Here
111
125
112
__PACKAGE__->add_unique_constraint(
126
__PACKAGE__->add_unique_constraint(
113
  "branchcode",
127
  "branchcode",
114
  ["branchcode", "categorycode", "itemtype", "rule_name"],
128
  [
129
    "branchcode",
130
    "categorycode",
131
    "itemtype",
132
    "checkout_type",
133
    "rule_name",
134
  ],
115
);
135
);
116
136
117
=head1 RELATIONS
137
=head1 RELATIONS
Lines 177-184 __PACKAGE__->belongs_to( Link Here
177
);
197
);
178
198
179
199
180
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-05 14:29:17
200
# Created by DBIx::Class::Schema::Loader v0.07048 @ 2020-04-09 21:29:30
181
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QHMqvrtX0ohJe70PHUYZ0Q
201
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:k6fFSiRyYlY8mwHNNQ1u5A
182
202
183
sub koha_objects_class {
203
sub koha_objects_class {
184
    'Koha::CirculationRules';
204
    'Koha::CirculationRules';
185
- 

Return to bug 25089