-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Return null from migration to match with typehint #17740
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
Conversation
|
/backport to stable17 |
|
Why? The schema should only be returned when it actually changed something. Which is only the case inside the if? Otherwise this locks the db starts heavy diffing of the schema just to unlock again? |
Signed-off-by: Daniel Kesselberg <[email protected]>
5dcae6e to
fd83661
Compare
OK. It returns null outside the if now. |
| $table->addIndex(['object_id'], 'calendar_reminder_objid'); | ||
| $table->addIndex(['uid', 'recurrence_id'], 'calendar_reminder_uidrec'); | ||
|
|
||
| return $schema; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep this
| return $schema; | ||
| } | ||
|
|
||
| return $schema; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Return null here
|
backport to stable17 in #17742 |
Fix #17479