-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
feat: strategy variant migrations #4225
Conversation
Sonatype Lift is retiringSonatype Lift will be retiring on Sep 12, 2023, with its analysis stopping on Aug 12, 2023. We understand that this news may come as a disappointment, and Sonatype is committed to helping you transition off it seamlessly. If you’d like to retain your data, please export your issues from the web console. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎ |
exports.up = function (db, callback) { | ||
db.runSql( | ||
` | ||
ALTER TABLE feature_strategies ADD COLUMN IF NOT EXISTS variants JSONB DEFAULT '[]'::jsonb NOT NULL; |
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.
new column
fss.segment_id as segments, | ||
feature_strategies.title as strategy_title, | ||
feature_strategies.disabled as strategy_disabled, | ||
feature_strategies.variants as strategy_variants |
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.
feature_strategies.sort_order as sort_order, | ||
fss.segment_id as segments, | ||
feature_strategies.title as strategy_title, | ||
feature_strategies.disabled as strategy_disabled |
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.
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.
LG
About the changes
Adding variants JSONB column to strategies that will allow subsequent PRs introduce support for the strategy variants.
It's less than 10 LOC, most of the code is the old view definition with a new line added.
More comments inline.
Important files
Discussion points