Bug 6874: (RM followup) DBIx updates
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
7fe69d8e5d
commit
03ae8f70c2
1 changed files with 114 additions and 0 deletions
114
Koha/Schema/Result/UploadedFile.pm
Normal file
114
Koha/Schema/Result/UploadedFile.pm
Normal file
|
@ -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<uploaded_files>
|
||||
|
||||
=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</id>
|
||||
|
||||
=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;
|
Loading…
Reference in a new issue