Doctrine 1
  1. Doctrine 1
  2. DC-970

Diff Tool doesn't generate the down() method if a field attribute is changed in YAML

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Doctrine 1.2

      Description

      Diff Tool doesn't generate the down() method if a field attribute is changed in YAML. Below is an example

      scheme.yaml
          email:
            type: string(255)
            fixed: false
            unsigned: false
            primary: false
            notnull: false
            autoincrement: false
      
      scheme2.yaml
          email:
            type: string(160)
            fixed: false
            unsigned: false
            primary: false
            notnull: true
            autoincrement: false
      

      And below is the generated migration class (down() method is missing):

      1239898949_Version39.php
      class Version39 extends Doctrine_Migration_Base
      {
          public function up()
          {
              $this->changeColumn('support_tickets', 'email', 'string', '160', array(
                   'fixed' => '0',
                   'unsigned' => '',
                   'primary' => '',
                   'notnull' => '',
                   'autoincrement' => '',
                   ));
          }
      
          public function down()
          {
      
          }
      }
      

        Activity

        Hide
        Ton Sharp added a comment -

        How I can see "changeColumn" doesn't work in the "down" section

        Show
        Ton Sharp added a comment - How I can see "changeColumn" doesn't work in the "down" section

          People

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

            Dates

            • Created:
              Updated: