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

Use semver directory to carry the schema version #930

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

schnell18
Copy link

Hi,
This PR is an attempt to use semver directory to represent the schema version. The current version scheme is not intuitive and requires additional efforts to keep track of the database version with the application version.

This PR moves the version component from the file name to its containing directory. The name of directory conforms to the semver standard. Currently, this feature is available to the file source.

In addition, there are two extra fields added to the schema_migrations table so that we can track when is the schema change applied last time as well as the change identifier w/ semver version number embedded.

Please consider merge this PR or feel free to get back to me for further improvement.
Thanks for your attention!

@coveralls
Copy link

coveralls commented Jun 4, 2023

Coverage Status

coverage: 59.809% (+1.3%) from 58.526% when pulling f66f4ed on schnell18:master into 23d8d33 on golang-migrate:master.

@schnell18 schnell18 force-pushed the master branch 2 times, most recently from 49fd3ba to 9d47e59 Compare June 4, 2023 14:24
- Add last_updated in the schema_migrations table(MySQL-only)
- Persist identifier in the schema_migrations table(MySQL-only)
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.

None yet

2 participants