From 12278ebf42f7494d3683d6b6c4b91ed2e698f7fe Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 25 Feb 2022 07:55:55 -0300 Subject: [PATCH] Bug 30182: DBIC update Signed-off-by: Tomas Cohen Arazi Signed-off-by: David Nind --- Koha/Schema/Result/BackgroundJob.pm | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/Koha/Schema/Result/BackgroundJob.pm b/Koha/Schema/Result/BackgroundJob.pm index 97f5fdef01..d3a321801a 100644 --- a/Koha/Schema/Result/BackgroundJob.pm +++ b/Koha/Schema/Result/BackgroundJob.pm @@ -31,9 +31,12 @@ __PACKAGE__->table("background_jobs"); =head2 status - data_type: 'varchar' - is_nullable: 1 - size: 32 + data_type: 'enum' + default_value: 'new' + extra: {list => ["new","started","finished","cancelled"]} + is_nullable: 0 + +Job status =head2 progress @@ -94,7 +97,12 @@ __PACKAGE__->add_columns( "id", { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, "status", - { data_type => "varchar", is_nullable => 1, size => 32 }, + { + data_type => "enum", + default_value => "new", + extra => { list => ["new", "started", "finished", "cancelled"] }, + is_nullable => 0, + }, "progress", { data_type => "integer", is_nullable => 1 }, "size", @@ -145,8 +153,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("id"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-04-04 17:50:05 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EQUgOEtr2ymejd/0ZffJWg +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-05-24 17:21:26 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:I/YE2oGDGCmwcV+hR8Iamg # You can replace this text with custom code or comments, and it will be preserved on regeneration -- 2.30.2