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

(-)a/Koha/Schema/Result/Biblio.pm (-2 / +17 lines)
Lines 167-172 __PACKAGE__->has_many( Link Here
167
  { cascade_copy => 0, cascade_delete => 0 },
167
  { cascade_copy => 0, cascade_delete => 0 },
168
);
168
);
169
169
170
=head2 biblio_metadatas
171
172
Type: has_many
173
174
Related object: L<Koha::Schema::Result::BiblioMetadata>
175
176
=cut
177
178
__PACKAGE__->has_many(
179
  "biblio_metadatas",
180
  "Koha::Schema::Result::BiblioMetadata",
181
  { "foreign.biblionumber" => "self.biblionumber" },
182
  { cascade_copy => 0, cascade_delete => 0 },
183
);
184
170
=head2 biblioimages
185
=head2 biblioimages
171
186
172
Type: has_many
187
Type: has_many
Lines 333-339 __PACKAGE__->has_many( Link Here
333
);
348
);
334
349
335
350
336
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-24 13:56:21
351
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 08:36:25
337
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IC5u5De1u1DS26kQQ7xmUQ
352
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jis7Sm5+9lVKav+o18JLtA
338
353
339
1;
354
1;
(-)a/Koha/Schema/Result/BiblioMetadata.pm (+126 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::BiblioMetadata;
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::BiblioMetadata
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<biblio_metadata>
19
20
=cut
21
22
__PACKAGE__->table("biblio_metadata");
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 biblionumber
33
34
  data_type: 'integer'
35
  is_foreign_key: 1
36
  is_nullable: 0
37
38
=head2 format
39
40
  data_type: 'varchar'
41
  is_nullable: 0
42
  size: 16
43
44
=head2 marcflavour
45
46
  data_type: 'varchar'
47
  is_nullable: 0
48
  size: 16
49
50
=head2 metadata
51
52
  data_type: 'longtext'
53
  is_nullable: 0
54
55
=cut
56
57
__PACKAGE__->add_columns(
58
  "id",
59
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
60
  "biblionumber",
61
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
62
  "format",
63
  { data_type => "varchar", is_nullable => 0, size => 16 },
64
  "marcflavour",
65
  { data_type => "varchar", is_nullable => 0, size => 16 },
66
  "metadata",
67
  { data_type => "longtext", is_nullable => 0 },
68
);
69
70
=head1 PRIMARY KEY
71
72
=over 4
73
74
=item * L</id>
75
76
=back
77
78
=cut
79
80
__PACKAGE__->set_primary_key("id");
81
82
=head1 UNIQUE CONSTRAINTS
83
84
=head2 C<biblio_metadata_uniq_key>
85
86
=over 4
87
88
=item * L</biblionumber>
89
90
=item * L</format>
91
92
=item * L</marcflavour>
93
94
=back
95
96
=cut
97
98
__PACKAGE__->add_unique_constraint(
99
  "biblio_metadata_uniq_key",
100
  ["biblionumber", "format", "marcflavour"],
101
);
102
103
=head1 RELATIONS
104
105
=head2 biblionumber
106
107
Type: belongs_to
108
109
Related object: L<Koha::Schema::Result::Biblio>
110
111
=cut
112
113
__PACKAGE__->belongs_to(
114
  "biblionumber",
115
  "Koha::Schema::Result::Biblio",
116
  { biblionumber => "biblionumber" },
117
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
118
);
119
120
121
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 08:36:25
122
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LoYje8i9pvKcBn8DQwH/Sg
123
124
125
# You can replace this text with custom code or comments, and it will be preserved on regeneration
126
1;
(-)a/Koha/Schema/Result/Biblioitem.pm (-9 / +2 lines)
Lines 203-213 __PACKAGE__->table("biblioitems"); Link Here
203
  data_type: 'integer'
203
  data_type: 'integer'
204
  is_nullable: 1
204
  is_nullable: 1
205
205
206
=head2 marcxml
207
208
  data_type: 'longtext'
209
  is_nullable: 1
210
211
=cut
206
=cut
212
207
213
__PACKAGE__->add_columns(
208
__PACKAGE__->add_columns(
Lines 285-292 __PACKAGE__->add_columns( Link Here
285
  { data_type => "varchar", is_nullable => 1, size => 255 },
280
  { data_type => "varchar", is_nullable => 1, size => 255 },
286
  "totalissues",
281
  "totalissues",
287
  { data_type => "integer", is_nullable => 1 },
282
  { data_type => "integer", is_nullable => 1 },
288
  "marcxml",
289
  { data_type => "longtext", is_nullable => 1 },
290
);
283
);
291
284
292
=head1 PRIMARY KEY
285
=head1 PRIMARY KEY
Lines 334-341 __PACKAGE__->has_many( Link Here
334
);
327
);
335
328
336
329
337
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-21 14:37:19
330
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 08:36:25
338
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sIIeEpbe61VNkEYpUXNDkw
331
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cAlg2aIZ7hxeq+Hgl1AJcA
339
332
340
__PACKAGE__->belongs_to( biblio => "Koha::Schema::Result::Biblio", "biblionumber" );
333
__PACKAGE__->belongs_to( biblio => "Koha::Schema::Result::Biblio", "biblionumber" );
341
334
(-)a/Koha/Schema/Result/Deletedbiblio.pm (-2 / +19 lines)
Lines 135-143 __PACKAGE__->add_columns( Link Here
135
135
136
__PACKAGE__->set_primary_key("biblionumber");
136
__PACKAGE__->set_primary_key("biblionumber");
137
137
138
=head1 RELATIONS
138
139
139
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
140
=head2 deletedbiblio_metadatas
140
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:T381rHb43DPfZ7+d/WuSxQ
141
142
Type: has_many
143
144
Related object: L<Koha::Schema::Result::DeletedbiblioMetadata>
145
146
=cut
147
148
__PACKAGE__->has_many(
149
  "deletedbiblio_metadatas",
150
  "Koha::Schema::Result::DeletedbiblioMetadata",
151
  { "foreign.biblionumber" => "self.biblionumber" },
152
  { cascade_copy => 0, cascade_delete => 0 },
153
);
154
155
156
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 08:36:25
157
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HBjJjCdFsEUOPmxexvK27g
141
158
142
159
143
# You can replace this text with custom content, and it will be preserved on regeneration
160
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/DeletedbiblioMetadata.pm (+126 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::DeletedbiblioMetadata;
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::DeletedbiblioMetadata
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<deletedbiblio_metadata>
19
20
=cut
21
22
__PACKAGE__->table("deletedbiblio_metadata");
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 biblionumber
33
34
  data_type: 'integer'
35
  is_foreign_key: 1
36
  is_nullable: 0
37
38
=head2 format
39
40
  data_type: 'varchar'
41
  is_nullable: 0
42
  size: 16
43
44
=head2 marcflavour
45
46
  data_type: 'varchar'
47
  is_nullable: 0
48
  size: 16
49
50
=head2 metadata
51
52
  data_type: 'longtext'
53
  is_nullable: 0
54
55
=cut
56
57
__PACKAGE__->add_columns(
58
  "id",
59
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
60
  "biblionumber",
61
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
62
  "format",
63
  { data_type => "varchar", is_nullable => 0, size => 16 },
64
  "marcflavour",
65
  { data_type => "varchar", is_nullable => 0, size => 16 },
66
  "metadata",
67
  { data_type => "longtext", is_nullable => 0 },
68
);
69
70
=head1 PRIMARY KEY
71
72
=over 4
73
74
=item * L</id>
75
76
=back
77
78
=cut
79
80
__PACKAGE__->set_primary_key("id");
81
82
=head1 UNIQUE CONSTRAINTS
83
84
=head2 C<deletedbiblio_metadata_uniq_key>
85
86
=over 4
87
88
=item * L</biblionumber>
89
90
=item * L</format>
91
92
=item * L</marcflavour>
93
94
=back
95
96
=cut
97
98
__PACKAGE__->add_unique_constraint(
99
  "deletedbiblio_metadata_uniq_key",
100
  ["biblionumber", "format", "marcflavour"],
101
);
102
103
=head1 RELATIONS
104
105
=head2 biblionumber
106
107
Type: belongs_to
108
109
Related object: L<Koha::Schema::Result::Deletedbiblio>
110
111
=cut
112
113
__PACKAGE__->belongs_to(
114
  "biblionumber",
115
  "Koha::Schema::Result::Deletedbiblio",
116
  { biblionumber => "biblionumber" },
117
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
118
);
119
120
121
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 08:36:25
122
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hKgy8bBepvfP/ZYPApJnwQ
123
124
125
# You can replace this text with custom code or comments, and it will be preserved on regeneration
126
1;
(-)a/Koha/Schema/Result/Deletedbiblioitem.pm (-10 / +2 lines)
Lines 202-212 __PACKAGE__->table("deletedbiblioitems"); Link Here
202
  data_type: 'integer'
202
  data_type: 'integer'
203
  is_nullable: 1
203
  is_nullable: 1
204
204
205
=head2 marcxml
206
207
  data_type: 'longtext'
208
  is_nullable: 1
209
210
=cut
205
=cut
211
206
212
__PACKAGE__->add_columns(
207
__PACKAGE__->add_columns(
Lines 279-286 __PACKAGE__->add_columns( Link Here
279
  { data_type => "varchar", is_nullable => 1, size => 255 },
274
  { data_type => "varchar", is_nullable => 1, size => 255 },
280
  "totalissues",
275
  "totalissues",
281
  { data_type => "integer", is_nullable => 1 },
276
  { data_type => "integer", is_nullable => 1 },
282
  "marcxml",
283
  { data_type => "longtext", is_nullable => 1 },
284
);
277
);
285
278
286
=head1 PRIMARY KEY
279
=head1 PRIMARY KEY
Lines 296-303 __PACKAGE__->add_columns( Link Here
296
__PACKAGE__->set_primary_key("biblioitemnumber");
289
__PACKAGE__->set_primary_key("biblioitemnumber");
297
290
298
291
299
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-21 14:37:19
292
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 08:36:25
300
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Rijc/QK/Kdh3bMcbOTF8Tg
293
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZFXb+BlsrsArv8qE2DrkkA
301
294
302
295
303
# You can replace this text with custom content, and it will be preserved on regeneration
296
# You can replace this text with custom content, and it will be preserved on regeneration
304
- 

Return to bug 17196