Bugzilla – Attachment 128440 Details for
Bug 29605
DB structure may not be synced with kohastructure.sql
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29605: account_offsets.type is not null
Bug-29605-accountoffsetstype-is-not-null.patch (text/plain), 1.85 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-12-13 11:15:46 UTC
(
hide
)
Description:
Bug 29605: account_offsets.type is not null
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-12-13 11:15:46 UTC
Size:
1.85 KB
patch
obsolete
>From b47f0aa5fe875290a822db9d864179a782f24f4c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 2 Dec 2021 12:17:12 +0100 >Subject: [PATCH] Bug 29605: account_offsets.type is not null > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > installer/data/mysql/atomicupdate/bug_29605.pl | 11 ++++++++++- > installer/data/mysql/db_revs/210600013.pl | 2 +- > 2 files changed, 11 insertions(+), 2 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_29605.pl b/installer/data/mysql/atomicupdate/bug_29605.pl >index a18e8ecccc..a6bbbb08de 100755 >--- a/installer/data/mysql/atomicupdate/bug_29605.pl >+++ b/installer/data/mysql/atomicupdate/bug_29605.pl >@@ -32,8 +32,17 @@ return { > ADD CONSTRAINT `tmp_holdsqueue_ibfk_3` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE ON UPDATE CASCADE > }); > >- say $out "Added missing foreign key on tmp_holdsqueue" >+ say $out "Added missing foreign key on tmp_holdsqueue"; > } > >+ $dbh->do( >+ q{ >+ ALTER TABLE `account_offsets` >+ MODIFY COLUMN `type` enum( 'CREATE', 'APPLY', 'VOID', 'OVERDUE_INCREASE', 'OVERDUE_DECREASE' ) NOT NULL >+ } >+ ); >+ say $out "Ensure NOT NULL on account_offsets.type"; >+ > }, >+ > } >diff --git a/installer/data/mysql/db_revs/210600013.pl b/installer/data/mysql/db_revs/210600013.pl >index a8e52eaaf6..a7ab7e028e 100755 >--- a/installer/data/mysql/db_revs/210600013.pl >+++ b/installer/data/mysql/db_revs/210600013.pl >@@ -34,7 +34,7 @@ return { > 'VOID', > 'OVERDUE_INCREASE', > 'OVERDUE_DECREASE' >- ) >+ ) NOT NULL > AFTER `debit_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 29605
:
128113
|
128114
|
128152
|
128153
|
128154
|
128155
|
128156
|
128157
|
128158
|
128239
|
128313
|
128314
|
128437
|
128438
|
128439
|
128440
|
128441
|
128442
|
128443
|
128444
|
128445
|
128483
|
129153
|
129154
|
129155
|
129156
|
129157
|
129158
|
129159
|
129160
|
129161