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

(-)a/Koha/Schema/Result/EdifactError.pm (+104 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::EdifactError;
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::EdifactError
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<edifact_errors>
19
20
=cut
21
22
__PACKAGE__->table("edifact_errors");
23
24
=head1 ACCESSORS
25
26
=head2 id
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
=head2 message_id
33
34
  data_type: 'integer'
35
  is_foreign_key: 1
36
  is_nullable: 0
37
38
=head2 date
39
40
  data_type: 'date'
41
  datetime_undef_if_invalid: 1
42
  is_nullable: 1
43
44
=head2 section
45
46
  data_type: 'mediumtext'
47
  is_nullable: 1
48
49
=head2 details
50
51
  data_type: 'mediumtext'
52
  is_nullable: 1
53
54
=cut
55
56
__PACKAGE__->add_columns(
57
  "id",
58
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
59
  "message_id",
60
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
61
  "date",
62
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
63
  "section",
64
  { data_type => "mediumtext", is_nullable => 1 },
65
  "details",
66
  { data_type => "mediumtext", is_nullable => 1 },
67
);
68
69
=head1 PRIMARY KEY
70
71
=over 4
72
73
=item * L</id>
74
75
=back
76
77
=cut
78
79
__PACKAGE__->set_primary_key("id");
80
81
=head1 RELATIONS
82
83
=head2 message
84
85
Type: belongs_to
86
87
Related object: L<Koha::Schema::Result::EdifactMessage>
88
89
=cut
90
91
__PACKAGE__->belongs_to(
92
  "message",
93
  "Koha::Schema::Result::EdifactMessage",
94
  { id => "message_id" },
95
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
96
);
97
98
99
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-12-19 16:24:01
100
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eDk5vkbGeMthv3oVJUC7yQ
101
102
103
# You can replace this text with custom code or comments, and it will be preserved on regeneration
104
1;
(-)a/Koha/Schema/Result/EdifactMessage.pm (-3 / +17 lines)
Lines 174-179 __PACKAGE__->belongs_to( Link Here
174
  },
174
  },
175
);
175
);
176
176
177
=head2 edifact_errors
178
179
Type: has_many
180
181
Related object: L<Koha::Schema::Result::EdifactError>
182
183
=cut
184
185
__PACKAGE__->has_many(
186
  "edifact_errors",
187
  "Koha::Schema::Result::EdifactError",
188
  { "foreign.message_id" => "self.id" },
189
  { cascade_copy => 0, cascade_delete => 0 },
190
);
191
177
=head2 vendor
192
=head2 vendor
178
193
179
Type: belongs_to
194
Type: belongs_to
Lines 195-202 __PACKAGE__->belongs_to( Link Here
195
);
210
);
196
211
197
212
198
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
213
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-12-19 16:24:01
199
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JHUEsQ+kXjGTRxxc2FFSjQ
214
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bB1E11DztQ9y9UTnEKtQ1Q
200
215
201
__PACKAGE__->add_columns(
216
__PACKAGE__->add_columns(
202
    '+deleted' => { is_boolean => 1 },
217
    '+deleted' => { is_boolean => 1 },
203
- 

Return to bug 38689