Skip to content
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

Add support for database migrations on business logic or db level changes #246

Open
3 tasks
samad-yar-khan opened this issue May 3, 2024 · 0 comments
Open
3 tasks
Labels
enhancement New feature or request

Comments

@samad-yar-khan
Copy link
Contributor

Why do we need this ?

There are cases when a new column is added which is populated at the time of the sync. This change will not reflect in db existing data, but will be there in data synced after the version upgrade.

Example: We add a new url column in Incident Table like we did in this PR #245 . This uses some logic to populate url column in the sync itself but the existing rows will have null url. We should have a mechanism to do such database migrations as the logic can be more complex than a db query and re-syncing all data can be a pain.

Acceptance Criteria

  • Build a service/system that can track data migrations that need to be performed on the existing data.
  • It should be easy to create and setup the migrations for the developer.
  • User should be able to run these migrations automatically or via some scripts on any version update.

Further Comments / References

@samad-yar-khan samad-yar-khan added the enhancement New feature or request label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant