compileDropIndex function
The DROP INDEX of the index name of the table table, which is of the
schema of the table, unless name is qualified by one.
Implementation
String compileDropIndex(String table, String name, {bool ifExists = false}) {
var parts = sql.postgresNameParts(name);
var index = parts.length > 1
? sql.quotePostgresTableName(name)
: sql.quotePostgresInSchemaOf(table, parts.single);
return 'DROP INDEX ${ifExists ? 'IF EXISTS ' : ''}$index;';
}