feat(timestamps): adding timestamps to the version table #65
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
statusCmd
to print the status of database migrations, including the implementation of itsExecute
method to fetch and display migration statuses. (cmd_status.go
,main.go
) [1] [2]Dependency Updates:
go.mod
to include new dependencies such asgithub.com/jacobbrewer1/patcher
,github.com/prometheus/client_golang
, andgithub.com/pterm/pterm
, among others. (go.mod
) [1] [2]Package Refactoring:
pkg/models
package topkg/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:
GetStatus
method in theversioning
struct to retrieve and return the status of migrations. (pkg/migrations/status.go
,pkg/migrations/versioning.go
) [1] [2] [3] [4]