Skip to content

Conversation

@daniel-garcia
Copy link

No description provided.

kumaya and others added 30 commits September 17, 2018 10:02
- Add support for viper
- Add support for dsn and individual parameters
Configuration support for database string
Merge latest changes from opensource migrate
* Update alpine and golang versions

* Refresh go modules
* 'master' of github.com:golang-migrate/migrate: (418 commits)
  Run gofmt on internal build dir
  go mod tidy
  Resolves golang-migrate#647 - Fixes typos in Mongo advisory locking parameters (golang-migrate#648)
  Bump version of autorest/adal
  Set syntax highlighting for pkger example
  Add pkger to README
  change github auth to use oauth token instead of basic.
  Use the recommended v4 in mysql README
  go mod tidy
  fix test
  Delete all rows
  Use ParseBool
  Support for AWS Keyspaces
  Update gosnowflake from v1.4.3 to v1.6.3
  Update docker client usage with breaking change
  Update dktest to v0.3.7 to fix security warnings
  revert binary file location change in docker image
  fix source/file driver
  Update build constraints
  Update golangci-lint config
  ...
* upgrade alpine 3.13 -> 3.18

* add --pull to docker build
* adding pgx as the supported hotload base driver

* updating go.mod file
* pgx migrate test (#29)

* add hotload support (#15)

* import fsync

* Upgrade alpine 3.13 -> 3.18 (#21)

* upgrade alpine 3.13 -> 3.18

* add --pull to docker build

* adding pgx as the supported hotload base driver (#26)

* adding pgx as the supported hotload base driver

* updating go.mod file

* removing the pgx register in migrate (#27)

* register hotload with pgx driver

---------

Co-authored-by: Daniel Garcia <[email protected]>
Co-authored-by: Ying Chen <[email protected]>
Co-authored-by: Supriya Gowda <[email protected]>

* register pgx in main cli, not internal (#30)

* register pgx in main cli, not internal

* go fmt

---------

Co-authored-by: Sujay Kumar Suman <[email protected]>
Co-authored-by: Ying Chen <[email protected]>
Co-authored-by: Supriya Gowda <[email protected]>
daniel-garcia and others added 19 commits December 8, 2023 17:12
* First pass at downmigrate

* First pass at downmigrate

* downmigrate changes + UTs + cleanups

* address comments
…own feature (#37)

* address comments

* address comments + new UTs

* address comments

* remove build files
* Update go version and dependencies

* Update go versions in ci
- Add new 'install-to DIR' subcommand that copies the running binary to a specified directory
- Uses atomic operations: copy to temp file, then rename for atomicity
- Preserves executable permissions (755) from original binary
- Handles errors gracefully with proper exit codes and cleanup
- Validates destination directory exists and is actually a directory
- Integrated with existing help system and command structure

Implementation details:
- New file: internal/cli/commands_install_to.go - core functionality
- New file: internal/cli/commands_install_to_test.go - comprehensive test suite
- Modified: internal/cli/main.go - CLI integration and command parsing

Testing:
- 7 test functions covering unit and integration testing
- Tests atomic operations, error handling, permission preservation
- Tests CLI interface, help system, and edge cases
- All tests passing

This feature enables easy binary deployment and self-updating workflows
while maintaining compatibility with upstream migrate project structure.
feat: add install-to subcommand for binary self-installation
@coveralls
Copy link

coveralls commented Sep 12, 2025

Pull Request Test Coverage Report for Build 17663161495

Details

  • 253 of 653 (38.74%) changed or added relevant lines in 7 files are covered.
  • 180 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-3.0%) to 51.049%

Changes Missing Coverage Covered Lines Changed/Added Lines %
database/storage.go 0 4 0.0%
internal/cli/commands_install_to.go 40 56 71.43%
cmd/migrate/main.go 0 17 0.0%
database_source.go 0 70 0.0%
migrate.go 123 199 61.81%
internal/cli/main.go 0 107 0.0%
database/postgres/storage.go 90 200 45.0%
Files with Coverage Reduction New Missed Lines %
internal/cli/main.go 1 0.0%
migrate.go 1 69.3%
database/sqlserver/sqlserver.go 178 1.17%
Totals Coverage Status
Change from base Build 17652911998: -3.0%
Covered Lines: 4452
Relevant Lines: 8721

💛 - Coveralls

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.

8 participants