Skip to content

Commit

Permalink
entc/integration/migrate: update atlas and test custom time precision (
Browse files Browse the repository at this point in the history
  • Loading branch information
a8m committed Apr 8, 2022
1 parent 5dd5acc commit 6e4e4da
Show file tree
Hide file tree
Showing 12 changed files with 592 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dialect/sql/schema/postgres.go
Expand Up @@ -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
}
Expand Down
23 changes: 23 additions & 0 deletions entc/integration/migrate/entv2/customtype.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions entc/integration/migrate/entv2/customtype/customtype.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

196 changes: 196 additions & 0 deletions entc/integration/migrate/entv2/customtype/where.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions entc/integration/migrate/entv2/customtype_create.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6e4e4da

Please sign in to comment.