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

(-)a/Koha/Schema/Result/Accountline.pm (-2 / +31 lines)
Lines 111-116 __PACKAGE__->table("accountlines"); Link Here
111
  data_type: 'integer'
111
  data_type: 'integer'
112
  is_nullable: 1
112
  is_nullable: 1
113
113
114
=head2 branchcode
115
116
  data_type: 'varchar'
117
  is_foreign_key: 1
118
  is_nullable: 1
119
  size: 10
120
114
=cut
121
=cut
115
122
116
__PACKAGE__->add_columns(
123
__PACKAGE__->add_columns(
Lines 154-159 __PACKAGE__->add_columns( Link Here
154
  { data_type => "mediumtext", is_nullable => 1 },
161
  { data_type => "mediumtext", is_nullable => 1 },
155
  "manager_id",
162
  "manager_id",
156
  { data_type => "integer", is_nullable => 1 },
163
  { data_type => "integer", is_nullable => 1 },
164
  "branchcode",
165
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
157
);
166
);
158
167
159
=head1 PRIMARY KEY
168
=head1 PRIMARY KEY
Lines 215-220 __PACKAGE__->belongs_to( Link Here
215
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
224
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
216
);
225
);
217
226
227
=head2 branchcode
228
229
Type: belongs_to
230
231
Related object: L<Koha::Schema::Result::Branch>
232
233
=cut
234
235
__PACKAGE__->belongs_to(
236
  "branchcode",
237
  "Koha::Schema::Result::Branch",
238
  { branchcode => "branchcode" },
239
  {
240
    is_deferrable => 1,
241
    join_type     => "LEFT",
242
    on_delete     => "SET NULL",
243
    on_update     => "CASCADE",
244
  },
245
);
246
218
=head2 itemnumber
247
=head2 itemnumber
219
248
220
Type: belongs_to
249
Type: belongs_to
Lines 236-243 __PACKAGE__->belongs_to( Link Here
236
);
265
);
237
266
238
267
239
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-05-16 17:00:24
268
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-10 14:24:08
240
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pygYYKxFDRLX97PyeUeLvg
269
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PacL0dcS1HuKgdCg3bQa4w
241
270
242
271
243
# You can replace this text with custom content, and it will be preserved on regeneration
272
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Branch.pm (-3 / +17 lines)
Lines 211-216 __PACKAGE__->set_primary_key("branchcode"); Link Here
211
211
212
=head1 RELATIONS
212
=head1 RELATIONS
213
213
214
=head2 accountlines
215
216
Type: has_many
217
218
Related object: L<Koha::Schema::Result::Accountline>
219
220
=cut
221
222
__PACKAGE__->has_many(
223
  "accountlines",
224
  "Koha::Schema::Result::Accountline",
225
  { "foreign.branchcode" => "self.branchcode" },
226
  { cascade_copy => 0, cascade_delete => 0 },
227
);
228
214
=head2 aqbaskets
229
=head2 aqbaskets
215
230
216
Type: has_many
231
Type: has_many
Lines 662-669 __PACKAGE__->has_many( Link Here
662
);
677
);
663
678
664
679
665
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-09 15:50:42
680
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-10 14:24:08
666
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0yMUX1UukdV7eMol06JXTQ
681
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nRmkJuB8V/vJNUW6/gP5dg
667
682
668
683
669
# You can replace this text with custom code or comments, and it will be preserved on regeneration
684
# You can replace this text with custom code or comments, and it will be preserved on regeneration
670
- 

Return to bug 21401