Skip to content

[v2] DB migration with version#7103

Merged
pingsutw merged 3 commits intoflyteorg:v2from
machichima:db-migration-with-version
Mar 27, 2026
Merged

[v2] DB migration with version#7103
pingsutw merged 3 commits intoflyteorg:v2from
machichima:db-migration-with-version

Conversation

@machichima
Copy link
Copy Markdown
Member

@machichima machichima commented Mar 27, 2026

Tracking issue

Why are the changes needed?

We will run migration every time we start, we should only do this if schema changed.

What changes were proposed in this pull request?

  1. add run/cache service DB migration list
  2. use gormigrate to migrate. This will only perform migration on new entity, and will not apply migration every time

How was this patch tested?

Run sandbox locally and make sure we do not overwhelming SQL string

image

Labels

Please add one or more of the following labels to categorize your PR:

  • added: For new features.
  • changed: For changes in existing functionality.
  • deprecated: For soon-to-be-removed features.
  • removed: For features being removed.
  • fixed: For any bug fixed.
  • security: In case of vulnerabilities

This is important to improve the readability of release notes.

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

Docs link

Signed-off-by: machichima <nary12321@gmail.com>
Signed-off-by: machichima <nary12321@gmail.com>
Signed-off-by: machichima <nary12321@gmail.com>
@machichima machichima marked this pull request as ready for review March 27, 2026 07:48
@github-actions github-actions bot mentioned this pull request Mar 27, 2026
3 tasks
@pingsutw pingsutw merged commit 12de8a2 into flyteorg:v2 Mar 27, 2026
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants