Add GetVersions method to goose.Provider, returns the current (max db) version and the latest
(max filesystem) version. (#756)
Clarify GetLatestVersion method MUST return ErrVersionNotFound if no latest migration is
found. Previously it was returning a -1 and nil error, which was inconsistent with the rest of the
API surface.
Add GetLatestVersion implementations to all existing dialects. This is an optimization to avoid
loading all migrations when only the latest version is needed. This uses the max function in SQL
to get the latest version_id irrespective of the order of applied migrations.
Refactor existing portions of the code to use the new GetLatestVersion method.
Configuration
📅Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.
🔕Ignore: Close this MR and you won't be reminded about this update again.
If you want to rebase/retry this MR, check this box
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/pressly/goose/v3](https://github.com/pressly/goose) | require | patch | `v3.21.0` -> `v3.21.1` |
---
### Release Notes
<details>
<summary>pressly/goose (github.com/pressly/goose/v3)</summary>
### [`v3.21.1`](https://github.com/pressly/goose/blob/HEAD/CHANGELOG.md#v3211)
[Compare Source](https://github.com/pressly/goose/compare/v3.21.0...v3.21.1)
- Add `GetVersions` method to `goose.Provider`, returns the current (max db) version and the latest
(max filesystem) version. ([#​756](https://github.com/pressly/goose/issues/756))
- Clarify `GetLatestVersion` method MUST return `ErrVersionNotFound` if no latest migration is
found. Previously it was returning a -1 and nil error, which was inconsistent with the rest of the
API surface.
- Add `GetLatestVersion` implementations to all existing dialects. This is an optimization to avoid
loading all migrations when only the latest version is needed. This uses the `max` function in SQL
to get the latest version_id irrespective of the order of applied migrations.
- Refactor existing portions of the code to use the new `GetLatestVersion` method.
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this MR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box
---
This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjQxMy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This MR contains the following updates:
v3.21.0->v3.21.1Release Notes
pressly/goose (github.com/pressly/goose/v3)
v3.21.1Compare Source
Add
GetVersionsmethod togoose.Provider, returns the current (max db) version and the latest(max filesystem) version. (#756)
Clarify
GetLatestVersionmethod MUST returnErrVersionNotFoundif no latest migration isfound. Previously it was returning a -1 and nil error, which was inconsistent with the rest of the
API surface.
Add
GetLatestVersionimplementations to all existing dialects. This is an optimization to avoidloading all migrations when only the latest version is needed. This uses the
maxfunction in SQLto get the latest version_id irrespective of the order of applied migrations.
GetLatestVersionmethod.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this MR and you won't be reminded about this update again.
This MR has been generated by Renovate Bot.
mentioned in issue #4
restored source branch
renovate/github.com-pressly-goose-v3-3.x