{ cascade_copy => 0, cascade_delete => 0 },
);
+=head2 biblio_metadatas
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::BiblioMetadata>
+
+=cut
+
+__PACKAGE__->has_many(
+ "biblio_metadatas",
+ "Koha::Schema::Result::BiblioMetadata",
+ { "foreign.biblionumber" => "self.biblionumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
=head2 biblioimages
Type: has_many
);
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-24 13:56:21
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IC5u5De1u1DS26kQQ7xmUQ
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 08:36:25
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jis7Sm5+9lVKav+o18JLtA
1;
--- /dev/null
+use utf8;
+package Koha::Schema::Result::BiblioMetadata;
+
+# Created by DBIx::Class::Schema::Loader
+# DO NOT MODIFY THE FIRST PART OF THIS FILE
+
+=head1 NAME
+
+Koha::Schema::Result::BiblioMetadata
+
+=cut
+
+use strict;
+use warnings;
+
+use base 'DBIx::Class::Core';
+
+=head1 TABLE: C<biblio_metadata>
+
+=cut
+
+__PACKAGE__->table("biblio_metadata");
+
+=head1 ACCESSORS
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 format
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 16
+
+=head2 marcflavour
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 16
+
+=head2 metadata
+
+ data_type: 'longtext'
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "biblionumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "format",
+ { data_type => "varchar", is_nullable => 0, size => 16 },
+ "marcflavour",
+ { data_type => "varchar", is_nullable => 0, size => 16 },
+ "metadata",
+ { data_type => "longtext", is_nullable => 0 },
+);
+
+=head1 PRIMARY KEY
+
+=over 4
+
+=item * L</id>
+
+=back
+
+=cut
+
+__PACKAGE__->set_primary_key("id");
+
+=head1 UNIQUE CONSTRAINTS
+
+=head2 C<biblio_metadata_uniq_key>
+
+=over 4
+
+=item * L</biblionumber>
+
+=item * L</format>
+
+=item * L</marcflavour>
+
+=back
+
+=cut
+
+__PACKAGE__->add_unique_constraint(
+ "biblio_metadata_uniq_key",
+ ["biblionumber", "format", "marcflavour"],
+);
+
+=head1 RELATIONS
+
+=head2 biblionumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Biblio>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "biblionumber",
+ "Koha::Schema::Result::Biblio",
+ { biblionumber => "biblionumber" },
+ { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 08:36:25
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LoYje8i9pvKcBn8DQwH/Sg
+
+
+# You can replace this text with custom code or comments, and it will be preserved on regeneration
+1;
data_type: 'integer'
is_nullable: 1
-=head2 marcxml
-
- data_type: 'longtext'
- is_nullable: 1
-
=cut
__PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 255 },
"totalissues",
{ data_type => "integer", is_nullable => 1 },
- "marcxml",
- { data_type => "longtext", is_nullable => 1 },
);
=head1 PRIMARY KEY
);
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-21 14:37:19
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sIIeEpbe61VNkEYpUXNDkw
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 08:36:25
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cAlg2aIZ7hxeq+Hgl1AJcA
__PACKAGE__->belongs_to( biblio => "Koha::Schema::Result::Biblio", "biblionumber" );
__PACKAGE__->set_primary_key("biblionumber");
+=head1 RELATIONS
-# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:T381rHb43DPfZ7+d/WuSxQ
+=head2 deletedbiblio_metadatas
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::DeletedbiblioMetadata>
+
+=cut
+
+__PACKAGE__->has_many(
+ "deletedbiblio_metadatas",
+ "Koha::Schema::Result::DeletedbiblioMetadata",
+ { "foreign.biblionumber" => "self.biblionumber" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 08:36:25
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HBjJjCdFsEUOPmxexvK27g
# You can replace this text with custom content, and it will be preserved on regeneration
--- /dev/null
+use utf8;
+package Koha::Schema::Result::DeletedbiblioMetadata;
+
+# Created by DBIx::Class::Schema::Loader
+# DO NOT MODIFY THE FIRST PART OF THIS FILE
+
+=head1 NAME
+
+Koha::Schema::Result::DeletedbiblioMetadata
+
+=cut
+
+use strict;
+use warnings;
+
+use base 'DBIx::Class::Core';
+
+=head1 TABLE: C<deletedbiblio_metadata>
+
+=cut
+
+__PACKAGE__->table("deletedbiblio_metadata");
+
+=head1 ACCESSORS
+
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
+=head2 biblionumber
+
+ data_type: 'integer'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=head2 format
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 16
+
+=head2 marcflavour
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 16
+
+=head2 metadata
+
+ data_type: 'longtext'
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
+ "biblionumber",
+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+ "format",
+ { data_type => "varchar", is_nullable => 0, size => 16 },
+ "marcflavour",
+ { data_type => "varchar", is_nullable => 0, size => 16 },
+ "metadata",
+ { data_type => "longtext", is_nullable => 0 },
+);
+
+=head1 PRIMARY KEY
+
+=over 4
+
+=item * L</id>
+
+=back
+
+=cut
+
+__PACKAGE__->set_primary_key("id");
+
+=head1 UNIQUE CONSTRAINTS
+
+=head2 C<deletedbiblio_metadata_uniq_key>
+
+=over 4
+
+=item * L</biblionumber>
+
+=item * L</format>
+
+=item * L</marcflavour>
+
+=back
+
+=cut
+
+__PACKAGE__->add_unique_constraint(
+ "deletedbiblio_metadata_uniq_key",
+ ["biblionumber", "format", "marcflavour"],
+);
+
+=head1 RELATIONS
+
+=head2 biblionumber
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::Deletedbiblio>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "biblionumber",
+ "Koha::Schema::Result::Deletedbiblio",
+ { biblionumber => "biblionumber" },
+ { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
+
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 08:36:25
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hKgy8bBepvfP/ZYPApJnwQ
+
+
+# You can replace this text with custom code or comments, and it will be preserved on regeneration
+1;
data_type: 'integer'
is_nullable: 1
-=head2 marcxml
-
- data_type: 'longtext'
- is_nullable: 1
-
=cut
__PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 255 },
"totalissues",
{ data_type => "integer", is_nullable => 1 },
- "marcxml",
- { data_type => "longtext", is_nullable => 1 },
);
=head1 PRIMARY KEY
__PACKAGE__->set_primary_key("biblioitemnumber");
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-21 14:37:19
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Rijc/QK/Kdh3bMcbOTF8Tg
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 08:36:25
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZFXb+BlsrsArv8qE2DrkkA
# You can replace this text with custom content, and it will be preserved on regeneration