Bugzilla – Attachment 134366 Details for
Bug 30291
Rename recalls.* column names
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30291: (QA follow-up) Keep recall_id column name
Bug-30291-QA-follow-up-Keep-recallid-column-name.patch (text/plain), 2.87 KB, created by
Tomás Cohen Arazi (tcohen)
on 2022-04-29 11:33:55 UTC
(
hide
)
Description:
Bug 30291: (QA follow-up) Keep recall_id column name
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2022-04-29 11:33:55 UTC
Size:
2.87 KB
patch
obsolete
>From e8fa56690fc4778b0b4544c1cdc2a774586f09e9 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 29 Apr 2022 08:13:17 -0300 >Subject: [PATCH] Bug 30291: (QA follow-up) Keep recall_id column name > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > .../mysql/atomicupdate/bug_30291_-_rename_recalls_columns.pl | 3 +-- > installer/data/mysql/kohastructure.sql | 4 ++-- > 2 files changed, 3 insertions(+), 4 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_30291_-_rename_recalls_columns.pl b/installer/data/mysql/atomicupdate/bug_30291_-_rename_recalls_columns.pl >index 72a7d2751d..1834f96dc4 100755 >--- a/installer/data/mysql/atomicupdate/bug_30291_-_rename_recalls_columns.pl >+++ b/installer/data/mysql/atomicupdate/bug_30291_-_rename_recalls_columns.pl >@@ -7,8 +7,7 @@ return { > my ($args) = @_; > my ($dbh, $out) = @$args{qw(dbh out)}; > >- if( TableExists( 'recalls' ) and column_exists( 'recalls', 'recall_id' ) ) { >- $dbh->do(q{ ALTER TABLE recalls CHANGE COLUMN recall_id id int(11) NOT NULL AUTO_INCREMENT }); >+ if( TableExists( 'recalls' ) and column_exists( 'recalls', 'borrowernumber' ) ) { > $dbh->do(q{ ALTER TABLE recalls CHANGE COLUMN borrowernumber patron_id int(11) NOT NULL DEFAULT 0 }); > $dbh->do(q{ ALTER TABLE recalls CHANGE COLUMN recalldate created_date datetime DEFAULT NULL }); > $dbh->do(q{ ALTER TABLE recalls CHANGE COLUMN biblionumber biblio_id int(11) NOT NULL DEFAULT 0 }); >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 00417e5b92..d8b9725bea 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -4288,7 +4288,7 @@ CREATE TABLE `ratings` ( > > DROP TABLE IF EXISTS recalls; > CREATE TABLE recalls ( >- id int(11) NOT NULL AUTO_INCREMENT COMMENT "Unique identifier for this recall", >+ recall_id int(11) NOT NULL AUTO_INCREMENT COMMENT "Unique identifier for this recall", > patron_id int(11) NOT NULL DEFAULT 0 COMMENT "Identifier for patron who requested recall", > created_date datetime DEFAULT NULL COMMENT "Date the recall was requested", > biblio_id int(11) NOT NULL DEFAULT 0 COMMENT "Identifier for bibliographic record that has been recalled", >@@ -4303,7 +4303,7 @@ CREATE TABLE recalls ( > expiration_date datetime DEFAULT NULL COMMENT "Date recall is no longer required, or date recall will expire after waiting on shelf for pickup", > completed TINYINT(1) NOT NULL DEFAULT 0 COMMENT "Flag if recall is old and no longer active, i.e. expired, cancelled or completed", > item_level TINYINT(1) NOT NULL DEFAULT 0 COMMENT "Flag if recall is for a specific item", >- PRIMARY KEY (id), >+ PRIMARY KEY (recall_id), > KEY recalls_ibfk_1 (patron_id), > KEY recalls_ibfk_2 (biblio_id), > KEY recalls_ibfk_3 (item_id), >-- >2.34.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 30291
:
132379
|
132380
|
132381
|
132382
|
132383
|
132384
|
132385
|
132386
|
134359
|
134360
|
134361
|
134362
|
134363
|
134364
|
134365
|
134366
|
134367
|
134389
|
134390
|
134391
|
134392
|
134393
|
134394
|
134395
|
134396
|
134397
|
134629
|
134630