mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
dialect/sql/schema: support DESC indexes using atlasgo.io
This commit is contained in:
committed by
Ariel Mashraki
parent
94499bd141
commit
51663407cf
@@ -218,8 +218,7 @@ type IndexAnnotation struct {
|
||||
//
|
||||
// index.Fields("c1", "c2", "c3").
|
||||
// Annotation(
|
||||
// entsql.DescColumn("c1"),
|
||||
// entsql.DescColumn("c2"),
|
||||
// entsql.DescColumns("c1", "c2"),
|
||||
// )
|
||||
//
|
||||
// CREATE INDEX `table_c1_c2_c3` ON `table`(`c1` DESC, `c2` DESC, `c3`)
|
||||
|
||||
Reference in New Issue
Block a user