Skip to content

Implement migration system #15

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

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

Implement migration system #15

wants to merge 1 commit into from

Conversation

wangzuo
Copy link
Member

@wangzuo wangzuo commented May 19, 2025

No description provided.

- Added migration package with core functionalities for managing database migrations.
- Created Migration struct to represent individual migrations with versioning.
- Implemented Registry to manage migrations and load them from a specified directory.
- Developed VersionTracker to handle migration records in the database.
- Introduced Migrator to apply and rollback migrations.
- Added utility functions for generating version timestamps and managing migration directories.
- Created tests for Migration, Migrator, VersionTracker, and overall migration functionality.
- Established a test database setup for running migration tests.
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.

1 participant