From 03ae8f70c23c0ba5e07e6aa6fdb3c65dafec946e Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 7 Aug 2015 16:07:08 -0300 Subject: [PATCH] Bug 6874: (RM followup) DBIx updates Signed-off-by: Tomas Cohen Arazi --- Koha/Schema/Result/UploadedFile.pm | 114 +++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 Koha/Schema/Result/UploadedFile.pm diff --git a/Koha/Schema/Result/UploadedFile.pm b/Koha/Schema/Result/UploadedFile.pm new file mode 100644 index 0000000000..c0f82a15ff --- /dev/null +++ b/Koha/Schema/Result/UploadedFile.pm @@ -0,0 +1,114 @@ +use utf8; +package Koha::Schema::Result::UploadedFile; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + +=head1 NAME + +Koha::Schema::Result::UploadedFile + +=cut + +use strict; +use warnings; + +use base 'DBIx::Class::Core'; + +=head1 TABLE: C + +=cut + +__PACKAGE__->table("uploaded_files"); + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + is_auto_increment: 1 + is_nullable: 0 + +=head2 hashvalue + + data_type: 'char' + is_nullable: 0 + size: 40 + +=head2 filename + + data_type: 'text' + is_nullable: 0 + +=head2 dir + + data_type: 'text' + is_nullable: 0 + +=head2 filesize + + data_type: 'integer' + is_nullable: 1 + +=head2 dtcreated + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +=head2 categorycode + + data_type: 'tinytext' + is_nullable: 1 + +=head2 owner + + data_type: 'integer' + is_nullable: 1 + +=cut + +__PACKAGE__->add_columns( + "id", + { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, + "hashvalue", + { data_type => "char", is_nullable => 0, size => 40 }, + "filename", + { data_type => "text", is_nullable => 0 }, + "dir", + { data_type => "text", is_nullable => 0 }, + "filesize", + { data_type => "integer", is_nullable => 1 }, + "dtcreated", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "categorycode", + { data_type => "tinytext", is_nullable => 1 }, + "owner", + { data_type => "integer", is_nullable => 1 }, +); + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + +__PACKAGE__->set_primary_key("id"); + + +# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-08-07 16:06:37 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ox6orH0SkhCfPdjX24fnZw + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; -- 2.39.2