mirror of
https://github.com/ent/ent.git
synced 2026-04-28 05:30:56 +03:00
dialect/sql/schema: remove package prefix from globalid error (#4299)
This commit is contained in:
@@ -852,7 +852,7 @@ func (a *Atlas) tables(tables []*Table) ([]*schema.Table, error) {
|
||||
// The new implementation is based on annotations attached to the schema. Only one can be enabled.
|
||||
switch {
|
||||
case a.universalID && et.Annotation != nil && et.Annotation.IncrementStart != nil:
|
||||
return nil, errors.New("sql/schema: universal id and increment start annotation are mutually exclusive")
|
||||
return nil, errors.New("universal id and increment start annotation are mutually exclusive")
|
||||
case a.universalID && et.Name != TypeTable && len(et.PrimaryKey) == 1:
|
||||
r, err := a.pkRange(et)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user