mirror of
https://github.com/ent/ent.git
synced 2026-05-03 08:00:58 +03:00
entc/integration/migrate: update atlas and test custom time precision (#2462)
This commit is contained in:
@@ -737,10 +737,10 @@ func (d *Postgres) atTypeC(c1 *Column, c2 *schema.Column) error {
|
||||
}
|
||||
|
||||
func (d *Postgres) atUniqueC(t1 *Table, c1 *Column, t2 *schema.Table, c2 *schema.Column) {
|
||||
// For UNIQUE columns, PostgreSQL create an implicit index named
|
||||
// For UNIQUE columns, PostgreSQL creates an implicit index named
|
||||
// "<table>_<column>_key<i>".
|
||||
for _, idx := range t1.Indexes {
|
||||
// Index also defined explicitly, and will be add in atIndexes.
|
||||
// Index also defined explicitly, and will be added in atIndexes.
|
||||
if idx.Unique && d.atImplicitIndexName(idx, t1, c1) {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user