-
Notifications
You must be signed in to change notification settings - Fork 83
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
Lf 4689 database migration #3662
base: integration
Are you sure you want to change the base?
Conversation
*/ | ||
|
||
export const up = async function (knex) { | ||
await knex.schema.renameTable('integrating_partner', 'addon'); |
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.
@antsgar would you like this to be addon_partner
instead ? and then also farm_addon_partner
for the other table and .. addon_partner_id
etc?
I think my preference is shorter table name but just tell me if I should change it.
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.
Hmmm. I actually don't see integrating_partner
and addon_partner
as equivalent (i.e. I would think addons can refer to integrating_partners
or not, and not all integrating partners need to have a corresponding addon. So my vote is for the table names as they were given in the ticket (no changes at all to integrating_partner
). But I acknowledge it's not a very consistent preference!
But yeah, the more I look at
t.renameColumn('partner_id', 'addon_id');
the more that doesn't sit right for me 😂 The id is a reference to Ensemble. Only in the context of a farm's settings does it become an addon.
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.
@kathyavini So when we have a dropdown for the user with "addon options" that should instead be "integrating partner options" in the UI? Open to whatever but farm_external_integration
and integrating_partner
seemed centered around the the 'integration' concept which in the LiteFarm domain we are now calling 'addon'. Thats how I got here, and it sounded like Anto thought that made sense haha
But external_api_credentials
or addon_partner
(integrating partner) and addon
(farm_addon) also make sense to me as represesntative of the table columns. I am really good with whatever -- I just made it before looking too much. @antsgar knowing what has been discussed you want to just choose your preferred?
Description
Migrates existing "integration" table to new construct of "addon". Did not drop or edit any sensors tables at all.
This adds a few extra renames than discussed:
integrating_partner
->addon
addon
org_id
kept asorg_uuid
since the column is of that type and is more clear - maybe we will generalise in the future as we get more intgrations.Jira link: LF-4689
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: