Merge 65e9ff78fb
into 6a47ef9b49
This commit is contained in:
commit
579847642c
|
@ -1131,7 +1131,7 @@ func (db *postgres) GetIndexes(tableName string) (map[string]*core.Index, error)
|
|||
return nil, err
|
||||
}
|
||||
indexName = strings.Trim(indexName, `" `)
|
||||
if strings.HasSuffix(indexName, "_pkey") {
|
||||
if strings.HasSuffix(indexName, "_pkey") || strings.HasSuffix(indexName, "primary") {
|
||||
continue
|
||||
}
|
||||
if strings.HasPrefix(indexdef, "CREATE UNIQUE INDEX") {
|
||||
|
|
Loading…
Reference in New Issue