-
Notifications
You must be signed in to change notification settings - Fork 28
Support mysql unique key #196
Copy link
Copy link
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Requesting support for MySQL's unique key.
In the code blow, the unique type of idx has been ignored by the function createIndexSQL
func createIndexSQL(ts sqlchemy.ITableSpec, idx sqlchemy.STableIndex) string {
return fmt.Sprintf("CREATE INDEX `%s` ON `%s` (%s)", idx.Name(), ts.Name(), strings.Join(idx.QuotedColumns("`"), ","))
}
https://github.com/yunionio/sqlchemy/blob/master/backends/mysql/sync.go#L141
Can you please support MySQL unique key?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested