mirror of https://github.com/pressly/goose.git
refactor: Use UTC for timestamps when creating a migration (#242)
Co-authored-by: Mike Fridman <mf192@icloud.com>pull/667/head
parent
6e43ae9284
commit
c541882fdb
|
@ -11,8 +11,12 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|||
- Improve provider `Apply()` errors, add `ErrNotApplied` when attempting to rollback a migration
|
||||
that has not been previously applied. (#660)
|
||||
- Add `WithDisableGlobalRegistry` option to `NewProvider` to disable the global registry. (#645)
|
||||
- Add `-timeout` flag to CLI to set the maximum allowed duration for queries to run. Default is
|
||||
remains no timeout.
|
||||
- Add `-timeout` flag to CLI to set the maximum allowed duration for queries to run. Default remains
|
||||
no timeout. (#627)
|
||||
|
||||
⚠️ Potential Breaking Change ⚠️
|
||||
|
||||
- Update `goose create` to use UTC time instead of local time. (#242)
|
||||
|
||||
## [v3.16.0] - 2023-11-12
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ func SetSequential(s bool) {
|
|||
|
||||
// Create writes a new blank migration file.
|
||||
func CreateWithTemplate(db *sql.DB, dir string, tmpl *template.Template, name, migrationType string) error {
|
||||
version := time.Now().Format(timestampFormat)
|
||||
version := time.Now().UTC().Format(timestampFormat)
|
||||
|
||||
if sequential {
|
||||
// always use DirFS here because it's modifying operation
|
||||
|
|
Loading…
Reference in New Issue