Doctrine 1
  1. Doctrine 1
  2. DC-245

Table name prefix for table migration_version

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.5
    • Fix Version/s: 1.2.0-RC1
    • Component/s: Migrations
    • Labels:
      None

      Description

      The doctrine migration class sets a default table name for storing its version information, which bypasses any formatting rules, e.g. a table name prefix. Calling the function setTableName() does apply the format defined, but one cannot call _createMigrationTable() afterwards. This results in a situation, where on one hand I can have the table automatically created with the "wrong" name and on the other hand have the class use the correct table name but not create it at first.

      The attached patch is a simple solution to this dilemma, it added a call from the contructor to set the table name by the function call.

        Activity

        Hide
        Jonathan H. Wage added a comment -

        This is fixed properly in Doctrine 1.2

        Show
        Jonathan H. Wage added a comment - This is fixed properly in Doctrine 1.2
        Hide
        Erik Wegner added a comment -

        For Doctrine 1.2 see DC-383.

        Show
        Erik Wegner added a comment - For Doctrine 1.2 see DC-383 .

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Erik Wegner
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: