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

(-)a/Koha/Schema/Result/ImportBatch.pm (-4 / +49 lines)
Lines 117-122 __PACKAGE__->table("import_batches"); Link Here
117
  data_type: 'longtext'
117
  data_type: 'longtext'
118
  is_nullable: 1
118
  is_nullable: 1
119
119
120
=head2 profile_id
121
122
  data_type: 'integer'
123
  is_foreign_key: 1
124
  is_nullable: 1
125
120
=cut
126
=cut
121
127
122
__PACKAGE__->add_columns(
128
__PACKAGE__->add_columns(
Lines 203-208 __PACKAGE__->add_columns( Link Here
203
  { data_type => "varchar", is_nullable => 1, size => 100 },
209
  { data_type => "varchar", is_nullable => 1, size => 100 },
204
  "comments",
210
  "comments",
205
  { data_type => "longtext", is_nullable => 1 },
211
  { data_type => "longtext", is_nullable => 1 },
212
  "profile_id",
213
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
206
);
214
);
207
215
208
=head1 PRIMARY KEY
216
=head1 PRIMARY KEY
Lines 234-243 __PACKAGE__->has_many( Link Here
234
  { cascade_copy => 0, cascade_delete => 0 },
242
  { cascade_copy => 0, cascade_delete => 0 },
235
);
243
);
236
244
245
=head2 profile
246
247
Type: belongs_to
248
249
Related object: L<Koha::Schema::Result::ImportBatchesProfile>
250
251
=cut
252
253
__PACKAGE__->belongs_to(
254
  "profile",
255
  "Koha::Schema::Result::ImportBatchesProfile",
256
  { id => "profile_id" },
257
  {
258
    is_deferrable => 1,
259
    join_type     => "LEFT",
260
    on_delete     => "SET NULL",
261
    on_update     => "SET NULL",
262
  },
263
);
264
265
266
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-06-03 15:47:08
267
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jGfBdM8ht823HaxSr2c9Wg
237
268
238
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
269
=head2 koha_object_class
239
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:41giNJCRD9WXC4IGO/1D3A
270
271
  Koha Object class
272
273
=cut
274
275
sub koha_object_class {
276
    'Koha::ImportBatch';
277
}
278
279
=head2 koha_objects_class
280
281
  Koha Objects class
282
283
=cut
240
284
285
sub koha_objects_class {
286
    'Koha::ImportBatches';
287
}
241
288
242
# You can replace this text with custom content, and it will be preserved on regeneration
243
1;
289
1;
244
- 

Return to bug 23019