Skip to content

Conversation

@motatoes
Copy link
Contributor

@motatoes motatoes commented Dec 27, 2023

Until this PR backend has relied on "gorm" library for performing database migration from golang structs however this doesn't scale to complex changes in the database as mentioned by the library: https://gorm.io/docs/migration.html#Atlas-Integration

This PR integrates atlas for versioned migrations. In the next release if self-hosted users can specify BASELINE_MIGRATION = 20231227132525 as an environment variable and use the sample dockerfile+entrypoint.sh in order to skip first migration.

If someone is starting from the next version > 0.3.8 then they don't need to specify any variable.

This PR also introduce official docker images for self-hosted users to use them

@motatoes motatoes changed the title integration with atlas integration with atlas for versioned migrations Dec 27, 2023
@motatoes motatoes merged commit 92ba69b into develop Jan 2, 2024
@motatoes motatoes deleted the feat/atlans-integration branch January 2, 2024 12:01
@ZIJ ZIJ mentioned this pull request Jan 16, 2024
ben-of-codecraft pushed a commit to ben-of-codecraft/digger that referenced this pull request May 21, 2024
* integrate with atlas for database migrations
breardon2011 pushed a commit that referenced this pull request Sep 17, 2025
* integrate with atlas for database migrations
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