(out *strings.Builder, schemaName, tableName string, index *storepb.IndexMetadata)
| 1348 | } |
| 1349 | |
| 1350 | func writeDropIndexDiff(out *strings.Builder, schemaName, tableName string, index *storepb.IndexMetadata) error { |
| 1351 | if index.GetIsConstraint() { |
| 1352 | return writeDropTableConstraint(out, schemaName, tableName, index.GetName()) |
| 1353 | } |
| 1354 | if index.GetName() == "" { |
| 1355 | return nil |
| 1356 | } |
| 1357 | _, err := fmt.Fprintf(out, "DROP INDEX \"%s\".\"%s\";\n\n", schemaName, index.GetName()) |
| 1358 | return err |
| 1359 | } |
| 1360 | |
| 1361 | func writeAddCheckConstraint(out *strings.Builder, schemaName, tableName string, check *storepb.CheckConstraintMetadata) error { |
| 1362 | if check == nil { |
no test coverage detected