Bugzilla – Attachment 129156 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.90 KB, created by
Nick Clemens (kidclamp)
on 2022-01-07 13:16:18 UTC
(
hide
)
Description:
Bug 29605: account_offsets.type is not null
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2022-01-07 13:16:18 UTC
Size:
1.90 KB
patch
obsolete
>From 86e79e969db83c4c9afec7c3b316d592721b7744 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> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > 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.30.2
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