-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Managed - Minor schema fixes #27835
Managed - Minor schema fixes #27835
Conversation
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
80bd1f8
to
78d48c6
Compare
👍
Longer names seem safe. For flipping the required flag... I suppose the idea is that we've always understood it to be required. The due-diligence question is whether some edge-case came in the back door. I think the best evidence against that possibility:
The upgrade step goes a little bit further than just filling OTOH, I don't think anyone is quite crazy enough to put hacked values into Anyway, the patch generally makes sense. I did a DB upgrade (dmaster, 5.66=>master), and schema came out as expected. The main risk is that there are unforeseen use-cases for the standardized data (in which case the standardization would be destructive). I can't point to any, so I don't think we should do anything hard. Regardless, it seems cheap+safe to take snapshot beforehand, so I pushed that bit up. |
Thanks @totten
I was just matching the policy already set by the business logic: civicrm-core/CRM/Core/ManagedEntities.php Lines 388 to 389 in 4f2060b
This way if the field contains an empty string it will be coerced to 'always' which is what happens already at runtime: civicrm-core/CRM/Core/ManagedEntities.php Line 359 in 4f2060b
|
Increase size of 'module' column to match civicrm_extension.full_name Makes name required and longer Makes 'cleanup' required and declares explicitly the default value previously implied
8037693
to
16f215e
Compare
Overview
Fix up a couple columns in the civicrm_managed schema.
Technical Details
module
column to matchcivicrm_extension.full_name
name
required and longercleanup
required and declares explicitly the default value previously implied