From c2abe68483e41260caf21359075a1596175dbb2e Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Mon, 7 Mar 2022 17:24:05 +0100 Subject: [PATCH] regenerated ent with new version --- ent/dbpackage_query.go | 9 +++++---- ent/runtime/runtime.go | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ent/dbpackage_query.go b/ent/dbpackage_query.go index 36f7282..8c84326 100644 --- a/ent/dbpackage_query.go +++ b/ent/dbpackage_query.go @@ -107,7 +107,7 @@ func (dpq *DbPackageQuery) FirstIDX(ctx context.Context) int { } // Only returns a single DbPackage entity found by the query, ensuring it only returns one. -// Returns a *NotSingularError when exactly one DbPackage entity is not found. +// Returns a *NotSingularError when more than one DbPackage entity is found. // Returns a *NotFoundError when no DbPackage entities are found. func (dpq *DbPackageQuery) Only(ctx context.Context) (*DbPackage, error) { nodes, err := dpq.Limit(2).All(ctx) @@ -134,7 +134,7 @@ func (dpq *DbPackageQuery) OnlyX(ctx context.Context) *DbPackage { } // OnlyID is like Only, but returns the only DbPackage ID in the query. -// Returns a *NotSingularError when exactly one DbPackage ID is not found. +// Returns a *NotSingularError when more than one DbPackage ID is found. // Returns a *NotFoundError when no entities are found. func (dpq *DbPackageQuery) OnlyID(ctx context.Context) (id int, err error) { var ids []int @@ -243,8 +243,9 @@ func (dpq *DbPackageQuery) Clone() *DbPackageQuery { order: append([]OrderFunc{}, dpq.order...), predicates: append([]predicate.DbPackage{}, dpq.predicates...), // clone intermediate query. - sql: dpq.sql.Clone(), - path: dpq.path, + sql: dpq.sql.Clone(), + path: dpq.path, + unique: dpq.unique, } } diff --git a/ent/runtime/runtime.go b/ent/runtime/runtime.go index 04c77dd..401c7bf 100644 --- a/ent/runtime/runtime.go +++ b/ent/runtime/runtime.go @@ -5,6 +5,6 @@ package runtime // The schema-stitching logic is generated in git.harting.dev/ALHP/ALHP.GO/ent/runtime.go const ( - Version = "v0.10.0" // Version of ent codegen. - Sum = "h1:9cBomE1fh+WX34DPYQL7tDNAIvhKa3tXvwxuLyhYCMo=" // Sum of ent codegen. + Version = "v0.10.1" // Version of ent codegen. + Sum = "h1:dM5h4Zk6yHGIgw4dCqVzGw3nWgpGYJiV4/kyHEF6PFo=" // Sum of ent codegen. )