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

(-)a/Koha/Schema/Result/Item.pm (-2 / +17 lines)
Lines 701-709 __PACKAGE__->might_have( Link Here
701
  { cascade_copy => 0, cascade_delete => 0 },
701
  { cascade_copy => 0, cascade_delete => 0 },
702
);
702
);
703
703
704
=head2 tmp_holdsqueues
704
705
705
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-09 15:50:42
706
Type: has_many
706
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PQvA8qoxvTe4In5/oa5WIQ
707
708
Related object: L<Koha::Schema::Result::TmpHoldsqueue>
709
710
=cut
711
712
__PACKAGE__->has_many(
713
  "tmp_holdsqueues",
714
  "Koha::Schema::Result::TmpHoldsqueue",
715
  { "foreign.itemnumber" => "self.itemnumber" },
716
  { cascade_copy => 0, cascade_delete => 0 },
717
);
718
719
720
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-05-13 19:45:19
721
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VwC+zRYfSwpcakDpCkBXkA
707
722
708
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
723
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
709
724
(-)a/Koha/Schema/Result/TmpHoldsqueue.pm (-4 / +26 lines)
Lines 31-36 __PACKAGE__->table("tmp_holdsqueue"); Link Here
31
=head2 itemnumber
31
=head2 itemnumber
32
32
33
  data_type: 'integer'
33
  data_type: 'integer'
34
  is_foreign_key: 1
34
  is_nullable: 1
35
  is_nullable: 1
35
36
36
=head2 barcode
37
=head2 barcode
Lines 111-117 __PACKAGE__->add_columns( Link Here
111
  "biblionumber",
112
  "biblionumber",
112
  { data_type => "integer", is_nullable => 1 },
113
  { data_type => "integer", is_nullable => 1 },
113
  "itemnumber",
114
  "itemnumber",
114
  { data_type => "integer", is_nullable => 1 },
115
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
115
  "barcode",
116
  "barcode",
116
  { data_type => "varchar", is_nullable => 1, size => 20 },
117
  { data_type => "varchar", is_nullable => 1, size => 20 },
117
  "surname",
118
  "surname",
Lines 140-148 __PACKAGE__->add_columns( Link Here
140
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
141
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
141
);
142
);
142
143
144
=head1 RELATIONS
145
146
=head2 itemnumber
147
148
Type: belongs_to
149
150
Related object: L<Koha::Schema::Result::Item>
151
152
=cut
153
154
__PACKAGE__->belongs_to(
155
  "itemnumber",
156
  "Koha::Schema::Result::Item",
157
  { itemnumber => "itemnumber" },
158
  {
159
    is_deferrable => 1,
160
    join_type     => "LEFT",
161
    on_delete     => "CASCADE",
162
    on_update     => "CASCADE",
163
  },
164
);
165
143
166
144
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54
167
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-05-13 19:45:19
145
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1Wa4h3u3FePOhGPD8SHEWg
168
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7btKvJE/ZvkG5IvPF3vHeQ
146
169
147
170
148
# You can replace this text with custom content, and it will be preserved on regeneration
171
# You can replace this text with custom content, and it will be preserved on regeneration
149
- 

Return to bug 22899