mirror of
https://github.com/ent/ent.git
synced 2026-05-03 16:10:59 +03:00
go: update atlas and test global-unique-id migration (#2661)
This commit is contained in:
@@ -87,7 +87,7 @@ func (d *Postgres) setRange(ctx context.Context, conn dialect.ExecQuerier, t *Ta
|
||||
if len(t.PrimaryKey) == 1 {
|
||||
pk = t.PrimaryKey[0].Name
|
||||
}
|
||||
return conn.Exec(ctx, fmt.Sprintf("ALTER TABLE %s ALTER COLUMN %s RESTART WITH %d", t.Name, pk, value), []interface{}{}, nil)
|
||||
return conn.Exec(ctx, fmt.Sprintf("ALTER TABLE %q ALTER COLUMN %q RESTART WITH %d", t.Name, pk, value), []interface{}{}, nil)
|
||||
}
|
||||
|
||||
// table loads the current table description from the database.
|
||||
|
||||
Reference in New Issue
Block a user