Doctrine Migrations
  1. Doctrine Migrations
  2. DMIG-12

createIndexSql and dropIndexSql don't use the same logic to get the index name

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Labels:
      None
    • Environment:
      Postgres 8.4

      Description

      In the class Doctrine_Export the functions for creating and dropping indexes do not use the same logic to get the name of the index to be created or dropped.

      When creating an index $this->conn->quoteIdentifier() is called on the index name.
      When dropping an index $this->conn->quoteIdentifier($this->conn->formatter->getIndexName()) is called on the name, which by default adds '_idx' to the index name. Hence, when an index should be dropped in a migration an index with that name is not found because it was created without the '_idx'.

      We use the migrations with a Postgres 8.4 database.

        Activity

        Lea Haensenberger created issue -
        Hide
        Lea Haensenberger added a comment -

        I recreated the bug report in the doctrine 1 project since it rather belongs there.

        Show
        Lea Haensenberger added a comment - I recreated the bug report in the doctrine 1 project since it rather belongs there.
        Lea Haensenberger made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DMIG-12, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Lea Haensenberger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: