Bugzilla – Attachment 131110 Details for
Bug 30182
background_jobs.status should be an ENUM
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30182: DBIC update
Bug-30182-DBIC-update.patch (text/plain), 1.75 KB, created by
Tomás Cohen Arazi (tcohen)
on 2022-02-25 10:56:17 UTC
(
hide
)
Description:
Bug 30182: DBIC update
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2022-02-25 10:56:17 UTC
Size:
1.75 KB
patch
obsolete
>From 05def54c4871e2f5dfcf08c235d64241cd4af185 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 25 Feb 2022 07:55:55 -0300 >Subject: [PATCH] Bug 30182: DBIC update > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > 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 3d0b342d46..89566d7d38 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 > >@@ -85,7 +88,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", >@@ -129,8 +137,8 @@ __PACKAGE__->add_columns( > __PACKAGE__->set_primary_key("id"); > > >-# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-11-05 11:12:33 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JciFnOzpDW3lZlCfEVJUnQ >+# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-02-25 10:54:57 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dkkI1ZA5pbKOo4LoD3vt7w > > > # You can replace this text with custom code or comments, and it will be preserved on regeneration >-- >2.35.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30182
:
131109
|
131110
|
135327
|
135330
|
135331