1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php   
    # Doctrine_Export

    /**
     * dropIndexSql
     *
     * @param string    $table        name of table that should be used in method
     * @param string    $name         name of the index to be dropped
     * @return string                 SQL that is used for dropping an index
     */
    public function dropIndexSql($table, $name)
    {
        # ORIGINAL - VENDOR CODE
        # Bug :
        # trying to drop index named "index_name_idx" WITH ->getIndexName()
        # but ->createIndex() set WITHOUT ->getIndexName()
        //$name = $this->conn->quoteIdentifier($this->conn->formatter->getIndexName($name));

        # Fix @Ludovic Fleury <[email protected]>
        # skip ->getIndexName()

        return 'DROP INDEX ' . $name;
    }
?>