-
-
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
(REF) Schema - Correct boolean fields in various tables #23177
Conversation
(Standard links)
|
@colemanw @demeritcowboy after reviewing each table boolean column I have prepared this patch. Can you please review this PR? |
@@ -1,4 +1,6 @@ | |||
<?php | |||
return [ | |||
// DAO changed, but nothing in upgrader? | |||
'civicrm_acl_entity_role' => [ | |||
'is_active' => "DEFAULT 1 COMMENT 'Is this property active?", |
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.
The test fail is because there's a single-quote missing near the end here.
I haven't civicrm-core/xml/schema/Event/ParticipantStatusType.xml Lines 73 to 75 in fdcb13f
And then it doesn't cause a problem but both of these fields have duplicate defaults: civicrm-core/xml/schema/Financial/PaymentProcessorType.xml Lines 54 to 68 in fdcb13f
|
68bf68b
to
889eec1
Compare
Thanks @monishdeb. I think there's still a problem somewhere - on upgrade all the civicrm_menu.is_public entries get set to 1. I'll try to debug. And also sorry just noticing this should be against 5.49. |
Ok this line should be removed:
|
@monishdeb I've updated the base branch to 5.49 so we don't merge to master - obviously it has a lot to rebase out now... |
@monishdeb I've put #2319 into a separate PR - as it seems to e causing much confusion - this is obviously needing rebase but we can maybe merge that first - |
525215c
to
caf0e2a
Compare
@eileenmcnaughton I have rebased the PR. Also, should we also remove the requiredness of menu.is_public ? |
@monishdeb looks better! I think it is correct for booleans to be required - as long as we also have a default & do the upgrade script thing |
ok reverting the Menu stuff. |
caf0e2a
to
e45b470
Compare
Done. @eileenmcnaughton can you please review the PR? |
OK - I took a look at what is in this patch & all the changes make sense - I haven't verified that there is complete cover of all the changes that need to be made - only that what is in this patch looks right |
Thanks @eileenmcnaughton ! |
Overview
Followup PR #23134