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

feat(query-service): ✨ support for SQLite migration using init container #233

Merged
merged 3 commits into from
May 24, 2023

Conversation

prashant-shahi
Copy link
Member

@prashant-shahi prashant-shahi commented May 23, 2023

Context: Slack Message

In case of migration to v0.19, the following has to be included in the override-values.yaml:

queryService:
  initContainers:
    migration:
      enabled: true
      command:
        - sh
        - -c
        - |
          echo "Running migration"
          wget https://github.com/signoz/signoz-db-migrations/releases/download/v0.19/migrate-v0.19-linux-amd64 -O migrate
          chmod +x migrate
          ./migrate --dataSource /var/lib/signoz/signoz.db
          echo "Migration completed"

Signed-off-by: Prashant Shahi prashant@signoz.io

Signed-off-by: Prashant Shahi <prashant@signoz.io>
Signed-off-by: Prashant Shahi <prashant@signoz.io>
Signed-off-by: Prashant Shahi <prashant@signoz.io>
Copy link
Member

@srikanthccv srikanthccv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM, I hope this is tested for the basic flow.

@prashant-shahi
Copy link
Member Author

Thanks, LGTM, I hope this is tested for the basic flow.

yes, I have tested it with the similar scenario as that of the slack conversation linked in the issue description.

@prashant-shahi prashant-shahi merged commit cc57a6d into main May 24, 2023
@prashant-shahi prashant-shahi deleted the feat/migration-init branch May 24, 2023 06:01
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