-
Notifications
You must be signed in to change notification settings - Fork 38
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
As part of #201 there are advanced schema changes that our current DB migration mechanism doesn't support.
For example, it's likely we'll need database table renames and existing schema updates (similar to seed data). This can be achieved with atlas versioned migrations
Versioned migrations gives more control during code review and schema updates on the actual DB but it has some additional work to be done.
- Add migrations to development workflow enhancement(controlplane): versioned migrations support #220
- Apply migrations during deployment workflow by updating our Helm Chart i.e https://atlasgo.io/guides/deploying/helm feat(deployment): perform database migrations #222
- Migrate existing DB to use atlas, this is done by setting a
baseline
migration. https://entgo.io/docs/versioned-migrations#use-an-atlas-baseline-migration
$ atlas migrate apply --dir "file://migrations" \
--url "postgres://REDACTED@REDACTED:5432/controlplane" \
--baseline 20230706165452
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request