Doctrine 1
  1. Doctrine 1
  2. DC-292

no migrations diff on template change

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.0-RC1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      the generate-migrations-diff does not create migrations if the template changes fields on the model.

      For example:

      File:
      tableName: files
      inheritance:
      extends: Eeecore_Record_File
      actAs:
      Fileable:

      The Fileable Template does the following... (the "fileFields" option stores a couple of fields to add to the model)

      public function setTableDefinition()
      {

      foreach ($this->_options['fileFields'] as $key => $field)

      { $this->hasColumn($field['name'], $field['type'], $field['length'], $field['options']); }

      }

      everything works fine on generate-migrations-models (the initial migrations)... but if we change something on the "fileFields" the generate-migrations-diff call doesn't do anything. We have to rebuild all migrations or write a new migration by hand.

        Activity

        Christian Jaentsch created issue -
        Jonathan H. Wage made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Cannot Reproduce [ 5 ]
        Christian Jaentsch made changes -
        Resolution Cannot Reproduce [ 5 ]
        Status Resolved [ 5 ] Reopened [ 4 ]

          People

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

            Dates

            • Created:
              Updated: