From bc449670e41b93a4c8731180a864a856c020489f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 25 Feb 2019 13:31:48 -0300 Subject: [PATCH] Bug 22417: DBIX Schema changes Signed-off-by: Tomas Cohen Arazi --- Koha/Schema/Result/BackgroundJob.pm | 137 ++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 Koha/Schema/Result/BackgroundJob.pm diff --git a/Koha/Schema/Result/BackgroundJob.pm b/Koha/Schema/Result/BackgroundJob.pm new file mode 100644 index 0000000000..4c4dc4aa24 --- /dev/null +++ b/Koha/Schema/Result/BackgroundJob.pm @@ -0,0 +1,137 @@ +use utf8; +package Koha::Schema::Result::BackgroundJob; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + +=head1 NAME + +Koha::Schema::Result::BackgroundJob + +=cut + +use strict; +use warnings; + +use base 'DBIx::Class::Core'; + +=head1 TABLE: C + +=cut + +__PACKAGE__->table("background_jobs"); + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + is_auto_increment: 1 + is_nullable: 0 + +=head2 status + + data_type: 'varchar' + is_nullable: 1 + size: 32 + +=head2 progress + + data_type: 'integer' + is_nullable: 1 + +=head2 size + + data_type: 'integer' + is_nullable: 1 + +=head2 borrowernumber + + data_type: 'integer' + is_nullable: 1 + +=head2 type + + data_type: 'varchar' + is_nullable: 1 + size: 64 + +=head2 data + + data_type: 'text' + is_nullable: 1 + +=head2 enqueued_on + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 started_on + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 ended_on + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=cut + +__PACKAGE__->add_columns( + "id", + { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, + "status", + { data_type => "varchar", is_nullable => 1, size => 32 }, + "progress", + { data_type => "integer", is_nullable => 1 }, + "size", + { data_type => "integer", is_nullable => 1 }, + "borrowernumber", + { data_type => "integer", is_nullable => 1 }, + "type", + { data_type => "varchar", is_nullable => 1, size => 64 }, + "data", + { data_type => "text", is_nullable => 1 }, + "enqueued_on", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, + "started_on", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, + "ended_on", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, +); + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + +__PACKAGE__->set_primary_key("id"); + + +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-02-20 15:09:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:W4AN0tDu8476YvcYbHc1DA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; -- 2.20.1