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

(-)a/Koha/Schema/Result/BiblioMetadata.pm (-9 / +17 lines)
Lines 52-62 __PACKAGE__->table("biblio_metadata"); Link Here
52
  data_type: 'longtext'
52
  data_type: 'longtext'
53
  is_nullable: 0
53
  is_nullable: 0
54
54
55
=head2 nonxml_stripped
56
57
  data_type: 'mediumtext'
58
  is_nullable: 1
59
60
=head2 timestamp
55
=head2 timestamp
61
56
62
  data_type: 'timestamp'
57
  data_type: 'timestamp'
Lines 85-92 __PACKAGE__->add_columns( Link Here
85
  { data_type => "varchar", is_nullable => 0, size => 16 },
80
  { data_type => "varchar", is_nullable => 0, size => 16 },
86
  "metadata",
81
  "metadata",
87
  { data_type => "longtext", is_nullable => 0 },
82
  { data_type => "longtext", is_nullable => 0 },
88
  "nonxml_stripped",
89
  { data_type => "mediumtext", is_nullable => 1 },
90
  "timestamp",
83
  "timestamp",
91
  {
84
  {
92
    data_type => "timestamp",
85
    data_type => "timestamp",
Lines 133-138 __PACKAGE__->add_unique_constraint( Link Here
133
126
134
=head1 RELATIONS
127
=head1 RELATIONS
135
128
129
=head2 biblio_metadata_errors
130
131
Type: has_many
132
133
Related object: L<Koha::Schema::Result::BiblioMetadataError>
134
135
=cut
136
137
__PACKAGE__->has_many(
138
  "biblio_metadata_errors",
139
  "Koha::Schema::Result::BiblioMetadataError",
140
  { "foreign.metadata_id" => "self.id" },
141
  { cascade_copy => 0, cascade_delete => 0 },
142
);
143
136
=head2 biblionumber
144
=head2 biblionumber
137
145
138
Type: belongs_to
146
Type: belongs_to
Lines 169-176 __PACKAGE__->belongs_to( Link Here
169
);
177
);
170
178
171
179
172
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2026-02-26 15:22:11
180
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2026-02-27 12:56:18
173
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:B7CmpnimfPOqg17zOWRddg
181
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NChAW/EUnwVNQoNOa1eNVw
174
182
175
=head2 koha_object_class
183
=head2 koha_object_class
176
184
(-)a/Koha/Schema/Result/BiblioMetadataError.pm (-1 / +117 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::BiblioMetadataError;
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::BiblioMetadataError
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<biblio_metadata_errors>
19
20
=cut
21
22
__PACKAGE__->table("biblio_metadata_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 metadata_id
33
34
  data_type: 'integer'
35
  is_foreign_key: 1
36
  is_nullable: 0
37
38
FK to biblio_metadata.id
39
40
=head2 error_type
41
42
  data_type: 'varchar'
43
  is_nullable: 0
44
  size: 64
45
46
Error type identifier, e.g. nonxml_stripped
47
48
=head2 message
49
50
  data_type: 'mediumtext'
51
  is_nullable: 1
52
53
Error message details
54
55
=head2 created_on
56
57
  data_type: 'timestamp'
58
  datetime_undef_if_invalid: 1
59
  default_value: current_timestamp
60
  is_nullable: 0
61
62
=cut
63
64
__PACKAGE__->add_columns(
65
  "id",
66
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
67
  "metadata_id",
68
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
69
  "error_type",
70
  { data_type => "varchar", is_nullable => 0, size => 64 },
71
  "message",
72
  { data_type => "mediumtext", is_nullable => 1 },
73
  "created_on",
74
  {
75
    data_type => "timestamp",
76
    datetime_undef_if_invalid => 1,
77
    default_value => \"current_timestamp",
78
    is_nullable => 0,
79
  },
80
);
81
82
=head1 PRIMARY KEY
83
84
=over 4
85
86
=item * L</id>
87
88
=back
89
90
=cut
91
92
__PACKAGE__->set_primary_key("id");
93
94
=head1 RELATIONS
95
96
=head2 metadata
97
98
Type: belongs_to
99
100
Related object: L<Koha::Schema::Result::BiblioMetadata>
101
102
=cut
103
104
__PACKAGE__->belongs_to(
105
  "metadata",
106
  "Koha::Schema::Result::BiblioMetadata",
107
  { id => "metadata_id" },
108
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
109
);
110
111
112
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2026-02-27 12:56:18
113
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9EDJRN99cOP8lmceBh8GpQ
114
115
116
# You can replace this text with custom code or comments, and it will be preserved on regeneration
117
1;

Return to bug 35104