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

feat(timestamps): adding timestamps to the version table #65

Merged
merged 2 commits into from
Jan 18, 2025

Conversation

Jacobbrewer1
Copy link
Owner

@Jacobbrewer1 Jacobbrewer1 commented Jan 18, 2025

Describe your changes

This pull request introduces a new command to the application, updates dependencies, and refactors the codebase by renaming packages and updating references. Here are the most important changes:

New Command Addition:

  • Added a new statusCmd to print the status of database migrations, including the implementation of its Execute method to fetch and display migration statuses. (cmd_status.go, main.go) [1] [2]

Dependency Updates:

  • Updated go.mod to include new dependencies such as github.com/jacobbrewer1/patcher, github.com/prometheus/client_golang, and github.com/pterm/pterm, among others. (go.mod) [1] [2]

Package Refactoring:

  • Renamed the pkg/models package to pkg/entities and updated all references to use the new package name. This includes renaming files and updating import paths and type references throughout the codebase. (pkg/entities/column.go, pkg/entities/constraint.go, pkg/entities/key.go, pkg/entities/table.go, pkg/generation/load.go, pkg/generation/template_helpers.go, pkg/generation/templates.go) [1] [2] [3] [4] [5] [6] [7]

Migration Status Feature:

  • Implemented the GetStatus method in the versioning struct to retrieve and return the status of migrations. (pkg/migrations/status.go, pkg/migrations/versioning.go) [1] [2] [3] [4]

@Jacobbrewer1 Jacobbrewer1 enabled auto-merge (squash) January 18, 2025 09:50
@Jacobbrewer1 Jacobbrewer1 merged commit 915436b into main Jan 18, 2025
5 checks passed
@Jacobbrewer1 Jacobbrewer1 deleted the feat/timestamps branch January 18, 2025 09:51
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