Bug 6874: (RM followup) DBIx updates
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 7 Aug 2015 19:07:08 +0000 (16:07 -0300)
committerTomas Cohen Arazi <tomascohen@unc.edu.ar>
Tue, 11 Aug 2015 14:57:21 +0000 (11:57 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Schema/Result/UploadedFile.pm [new file with mode: 0644]

diff --git a/Koha/Schema/Result/UploadedFile.pm b/Koha/Schema/Result/UploadedFile.pm
new file mode 100644 (file)
index 0000000..c0f82a1
--- /dev/null
@@ -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;