entc/integration/migrate: update atlas and test custom time precision (#2462)

This commit is contained in:
Ariel Mashraki
2022-04-08 11:27:30 +03:00
committed by GitHub
parent 5dd5acc08d
commit 6e4e4da896
12 changed files with 592 additions and 4 deletions

View File

@@ -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
}