dialect/sql/schema: support DESC indexes using atlasgo.io

This commit is contained in:
Ariel Mashraki
2022-01-31 13:22:26 +02:00
committed by Ariel Mashraki
parent 94499bd141
commit 51663407cf
6 changed files with 37 additions and 3 deletions

View File

@@ -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`)