diff --git a/go.mod b/go.mod index f1f9e4b0..10638ab2 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.11-20260415201107-50325440f8f2.1 buf.build/go/protovalidate v1.2.0 github.com/Oudwins/zog v0.22.2 - github.com/amacneil/dbmate/v2 v2.33.0 + github.com/amacneil/dbmate/v2 v2.34.1 github.com/aws/aws-sdk-go-v2 v1.42.1 github.com/aws/aws-sdk-go-v2/config v1.32.29 github.com/aws/aws-sdk-go-v2/credentials v1.19.28 diff --git a/go.sum b/go.sum index 0a78d6ff..2d98b1aa 100644 --- a/go.sum +++ b/go.sum @@ -20,6 +20,8 @@ github.com/Oudwins/zog v0.22.2 h1:neSFVFsn7cd4azB9+2hK1sn1By5UZGc8o28vNWJhUIE= github.com/Oudwins/zog v0.22.2/go.mod h1:c4ADJ2zNkJp37ZViNy1o3ZZoeMvO7UQVO7BaPtRoocg= github.com/amacneil/dbmate/v2 v2.33.0 h1:b+NMcbdEIXfUAVaJA9oghc5oy3cjD0jGEIHGk6gZYgE= github.com/amacneil/dbmate/v2 v2.33.0/go.mod h1:N+r8NZLDhoRs4Qh801y8rvb6eeRxwYojYYUa8wwNQq8= +github.com/amacneil/dbmate/v2 v2.34.1 h1:wfJA2sMBvqZKW1Mw4Mn/Pkv6dwlUcyagxct9QwdyE1c= +github.com/amacneil/dbmate/v2 v2.34.1/go.mod h1:e0C7z9CM/sheKGTR8wT4sKj/K8pUKl607LyYJhqYzjU= github.com/antlr4-go/antlr/v4 v4.13.1 h1:SqQKkuVZ+zWkMMNkjy5FZe5mr5WURWnlpmOuzYWrPrQ= github.com/antlr4-go/antlr/v4 v4.13.1/go.mod h1:GKmUxMtwp6ZgGwZSva4eWPC5mS6vUAmOABFgjdkM7Nw= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= diff --git a/vendor/github.com/amacneil/dbmate/v2/pkg/dbmate/migration.go b/vendor/github.com/amacneil/dbmate/v2/pkg/dbmate/migration.go index 478b560c..50486d05 100644 --- a/vendor/github.com/amacneil/dbmate/v2/pkg/dbmate/migration.go +++ b/vendor/github.com/amacneil/dbmate/v2/pkg/dbmate/migration.go @@ -74,6 +74,7 @@ var ( ErrParseMissingDown = errors.New("dbmate requires each migration to define a down block with '-- migrate:down'") ErrParseWrongOrder = errors.New("dbmate requires '-- migrate:up' to appear before '-- migrate:down'") ErrParseUnexpectedStmt = errors.New("dbmate does not support statements preceding the '-- migrate:up' block") + ErrParseMultipleDown = errors.New("dbmate requires every '-- migrate:down' to be preceded by a '-- migrate:up'") ) func parseMigrationContents(contents string) ([]*ParsedMigration, error) { @@ -244,7 +245,7 @@ func getMigrationSectionSubstrings(contents string) ([]string, error) { begin, end := sectionBeginEnd[0], sectionBeginEnd[1] contentsSubstring := substring(contents, begin, end) if len(downRegExp.FindAllStringIndex(contentsSubstring, -1)) > 1 { - return nil, ErrParseMissingUp + return nil, ErrParseMultipleDown } sectionSubstrings = append(sectionSubstrings, contentsSubstring) } diff --git a/vendor/github.com/amacneil/dbmate/v2/pkg/dbmate/version.go b/vendor/github.com/amacneil/dbmate/v2/pkg/dbmate/version.go index f36adeb3..45225b5d 100644 --- a/vendor/github.com/amacneil/dbmate/v2/pkg/dbmate/version.go +++ b/vendor/github.com/amacneil/dbmate/v2/pkg/dbmate/version.go @@ -1,4 +1,4 @@ package dbmate // Version of dbmate -const Version = "2.33.0" +const Version = "2.34.1" diff --git a/vendor/modules.txt b/vendor/modules.txt index c01fceb2..ec4c2940 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -31,7 +31,7 @@ github.com/Oudwins/zog/pkgs/internals github.com/Oudwins/zog/pkgs/internals/is github.com/Oudwins/zog/pkgs/zss/core github.com/Oudwins/zog/zconst -# github.com/amacneil/dbmate/v2 v2.33.0 +# github.com/amacneil/dbmate/v2 v2.34.1 ## explicit; go 1.25.0 github.com/amacneil/dbmate/v2/pkg/dbmate github.com/amacneil/dbmate/v2/pkg/dbutil