-
Notifications
You must be signed in to change notification settings - Fork 191
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
Create campaign tables #7519
Create campaign tables #7519
Conversation
@alaca The intent is to re-use the existing P2P |
@JasonTheAdams we talked about it and the plan was to create a new table, at least I understood it like that. The campaigns table created from P2P seems too oriented on P2P (it has columns like |
@alaca I see, however I disagree with that conclusion. Ultimately, we want to be able to query all the campaigns at once. It sounds more like we need to offload some of the columns from the existing table to another P2P-specific table. It was intended to be generic when we built it, seems like some specific columns snuck their way in when we built it 3 years ago. 🤷♂️ |
My understanding was that we would migrate the table from P2P to core. |
@kjohnson Yeah, so we'll want to make two migrations:
|
@JasonTheAdams @kjohnson okay, then we will use the existing |
Thanks @alaca! You're the best! 🙌 |
As a note, @alaca, this is a good time to assess the existing columns — names, types, etc. — and make sure they're what we want. Since we're making migrations to move and adjust things now, best to give it some thought and not have to make more later. I think it's worth some discussion. |
@JasonTheAdams @kjohnson I updated the table name and the columns list to be the same as the one created from P2P. |
…ting campaigns (p2p)
…for existing campaigns (p2p)" This reverts commit 986cfe1.
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.
Approved (forgot to click this button before merging into the epic).
Description
This PR is reusing the
give_campaigns
table created by P2P. Also, it adds a new column to thegive_campaigns
table -campaign_type
. Thegive_core_campaign_forms
table is a lookup table that exists solely to avoid possible performance issues when using the post meta table.Pre-review Checklist
@unreleased
tags included in DocBlocks