-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct possible dropping of notnull from locale columns on upgrade #10293
Comments
thanks, go ahead |
@asmecher tests are passing , can you take a look at the PR at #10293 (comment) |
@touhidurabir, what does "->first(default:[])" mean? |
@bozana please see at https://github.com/pkp/pkp-lib/pull/10305/files#r1771286012 for reasoning . |
So I took a look at the code changes and they look good to me: we now look if the column to be changed is nullable and act accordingly i.e. we use |
sorry for missing this in august, we talked about this in the morning and looks to be fine. I also tried running upgrade test from 3.4 stable. |
Merged your PR, thanks, @touhidurabir! |
The implementation of #9425 included migration code that extended the length of any identified
locale
columns. However, some of these columns (e.g. publication_galleys.locale) are nullable, and this code will either make themNOT NULL
or, if there is null data present, fail with an error.I would suggest altering the migration to make it preserve the
NOT NULL
status of the column when extending the length.@jyhein and @ajnyga, just a heads-up -- @touhidurabir would like to fix it.
PRs
pkp-lib --> #10305
ojs --> pkp/ojs#4398 [TEST ONLY]
The text was updated successfully, but these errors were encountered: