Doctrine 1
  1. Doctrine 1
  2. DC-755

CLONE [DC-558] incorrect handling of MODEL_CLASS_PREFIX causes Doctrine_Migration_Diff to drop the whole database when working from YAML (Regression)

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 1.2.3
    • Fix Version/s: None
    • Component/s: Migrations
    • Labels:
      None
    • Environment:
      Current HEAD of Doctrine 1.2

      Description

      Replicating the bug:
      1. Set ATTR_MODEL_CLASS_PREFIX non-null
      2. create schema file with entity
      3. run doctrine build-all
      4. copy schema file
      5. edit schema file to add column to entity
      6. run generate-migrations-diff from copy of schema file to edited schema file

      Expected (previous) behaviour:
      Migration is generated to add the new column to entity

      Real behaviour:
      Drops entity from database and creates new

      1. dc755TestCase.diff
        3 kB
        Andrew Coulton
      2. fix755.diff
        0.6 kB
        Andrew Coulton

        Activity

          People

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

            Dates

            • Created:
              Updated: