Bugzilla – Attachment 103094 Details for
Bug 25086
OPAC Self Registration - Field 'changed_fields' doesn't have a default value
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25086: (follow-up) Set changed_fields column as nullable
Bug-25086-follow-up-Set-changedfields-column-as-nu.patch (text/plain), 1.70 KB, created by
Victor Grousset/tuxayo
on 2020-04-16 16:12:03 UTC
(
hide
)
Description:
Bug 25086: (follow-up) Set changed_fields column as nullable
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2020-04-16 16:12:03 UTC
Size:
1.70 KB
patch
obsolete
>From 0cc199241ffb7b43cd8fa49d2b53f222c2c1714b Mon Sep 17 00:00:00 2001 >From: Agustin Moyano <agustinmoyano@theke.io> >Date: Wed, 15 Apr 2020 13:52:21 -0300 >Subject: [PATCH] Bug 25086: (follow-up) Set changed_fields column as nullable > >This patch reverts previous patch (left there because it was signed off), and sets changed_fields column as nullable. >Attend only this test plan and not previous patch. > >To test: >1. Do not apply any patch >2. Set PatronSelfRegistrationVerifyByEmail preference to require >3. Fill self registration form in opac and submit >CHECK => OPAC dies with a nasty message, that says Field 'changed_fields' doesn't have a default value >4. Apply this patch and updatedatabase >5. Repeat step 3 >SUCCESS => Registry process continues as expected >6. Sign off > >Sponsored-by: Orex Digital >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > installer/data/mysql/atomicupdate/bug_25086.perl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_25086.perl b/installer/data/mysql/atomicupdate/bug_25086.perl >index 241d1f34f4..183408e6d4 100644 >--- a/installer/data/mysql/atomicupdate/bug_25086.perl >+++ b/installer/data/mysql/atomicupdate/bug_25086.perl >@@ -2,7 +2,7 @@ $DBversion = 'XXX'; # will be replaced by the RM > if( CheckVersion( $DBversion ) ) { > # you can use $dbh here like: > >- $dbh->do( "ALTER TABLE borrower_modifications ALTER COLUMN changed_fields MEDIUMTEXT DEFAULT NULL" ); >+ $dbh->do( "ALTER TABLE borrower_modifications MODIFY changed_fields MEDIUMTEXT DEFAULT NULL" ); > > # Always end with this (adjust the bug info) > NewVersion( $DBversion, 25086, "Set changed_fields column of borrower_modifications as nullable"); >-- >2.26.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 25086
:
102600
|
102893
|
103024
|
103025
|
103038
|
103093
|
103094
|
103095
|
103096
|
103097
|
103098
|
103115