From 909a3df890452f0f96ebd29ab571b1b8afaca475 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 12 Oct 2020 14:47:30 +0200 Subject: [PATCH] Bug 26145: (follow-up 2) DBIC schema changes Signed-off-by: Jonathan Druart --- Koha/Schema/Result/Biblioimage.pm | 118 ------------------------------ 1 file changed, 118 deletions(-) delete mode 100644 Koha/Schema/Result/Biblioimage.pm diff --git a/Koha/Schema/Result/Biblioimage.pm b/Koha/Schema/Result/Biblioimage.pm deleted file mode 100644 index 090e6b20f6..0000000000 --- a/Koha/Schema/Result/Biblioimage.pm +++ /dev/null @@ -1,118 +0,0 @@ -use utf8; -package Koha::Schema::Result::Biblioimage; - -# Created by DBIx::Class::Schema::Loader -# DO NOT MODIFY THE FIRST PART OF THIS FILE - -=head1 NAME - -Koha::Schema::Result::Biblioimage - -=cut - -use strict; -use warnings; - -use base 'DBIx::Class::Core'; - -=head1 TABLE: C - -=cut - -__PACKAGE__->table("biblioimages"); - -=head1 ACCESSORS - -=head2 imagenumber - - data_type: 'integer' - is_auto_increment: 1 - is_nullable: 0 - -=head2 biblionumber - - data_type: 'integer' - is_foreign_key: 1 - is_nullable: 0 - -=head2 mimetype - - data_type: 'varchar' - is_nullable: 0 - size: 15 - -=head2 imagefile - - data_type: 'mediumblob' - is_nullable: 0 - -=head2 thumbnail - - data_type: 'mediumblob' - is_nullable: 0 - -=head2 timestamp - - data_type: 'timestamp' - datetime_undef_if_invalid: 1 - default_value: current_timestamp - is_nullable: 0 - -=cut - -__PACKAGE__->add_columns( - "imagenumber", - { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, - "biblionumber", - { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, - "mimetype", - { data_type => "varchar", is_nullable => 0, size => 15 }, - "imagefile", - { data_type => "mediumblob", is_nullable => 0 }, - "thumbnail", - { data_type => "mediumblob", is_nullable => 0 }, - "timestamp", - { - data_type => "timestamp", - datetime_undef_if_invalid => 1, - default_value => \"current_timestamp", - is_nullable => 0, - }, -); - -=head1 PRIMARY KEY - -=over 4 - -=item * L - -=back - -=cut - -__PACKAGE__->set_primary_key("imagenumber"); - -=head1 RELATIONS - -=head2 biblionumber - -Type: belongs_to - -Related object: L - -=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.07046 @ 2020-03-20 10:39:00 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:f6elSD3dDk6vWE4bUirmew - - -# You can replace this text with custom content, and it will be preserved on regeneration -1; -- 2.39.5