-
Notifications
You must be signed in to change notification settings - Fork 69
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
fix: Add migration for changes in TFOD and CVAT template #756
Conversation
db/data/20201130130725_cvat.yaml
Outdated
mountPath: /etc/onepanel | ||
readOnly: true | ||
- name: cvat-ui | ||
image: onepanel/cvat-ui:0.14.0_cvat.1.0.0 |
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.
This doesn't look like the latest template
The migrations also need to be added to db/go/db.go |
Can you update the TFOD template based on the last migration template? It'll make it easier to diff. |
@rushtehrani can you check now? |
|
||
//Down20201130130433 do nothing | ||
func Down20201130130433(tx *sql.Tx) error { | ||
// This code is executed when the migration is rolled back. |
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.
This should update to the previous template:
return updateWorkflowTemplateManifest(
"20201115134934_tfod.yaml",
tfodWorkflowTemplateName,
map[string]string{
"used-by": "cvat",
},
)
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.
Just to confirm, inside Down20201130130433
?
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.
yes, only in down migration. Looks like you changed up migration to use the old template too?
func Up20201130130433(tx *sql.Tx) error { | ||
// This code is executed when the migration is applied. | ||
return updateWorkflowTemplateManifest( | ||
"20201115134934_tfod.yaml", |
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.
This looks incorrect now, should be: 20201130130433_tfod.yaml
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.
yeah, updating now.
What this PR does:
Which issue(s) this PR fixes:
Fixes onepanelio/core#
Special notes for your reviewer:
Checklist
Please check if applies
Required