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

cmd/action: add atlas migrate hash command to solve checksum mismatches #662

Merged
merged 2 commits into from
Mar 21, 2022

Conversation

masseelch
Copy link
Member

This PR adds the atlas migrate hash command that can be used to re-hash the migration directory. This is needed for when the user did any manual change to the migration directory to create a correct atlas.sum file.

Copy link
Member

@a8m a8m left a comment

Choose a reason for hiding this comment

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

Looks good, but please fix the doc comments.

cmd/action/migrate.go Outdated Show resolved Hide resolved
cmd/action/migrate.go Outdated Show resolved Hide resolved
cmd/action/migrate.go Outdated Show resolved Hide resolved
cmd/action/migrate_test.go Show resolved Hide resolved
```
atlas migrate validate
atlas migrate validate --dir /path/to/migration/directory
```
Copy link
Member

Choose a reason for hiding this comment

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

fix (rerun go generate)

@masseelch masseelch merged commit ef5053c into master Mar 21, 2022
@masseelch masseelch deleted the migrate/hash-cli branch March 21, 2022 11:54
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