Details
-
Type:
Bug
-
Status:
Open
-
Priority:
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() { } }