Changeset 10445
- Timestamp:
- 07/23/08 23:18:01 (5 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfPropelPlugin/branches/1.3/lib/task/sfPropelGenerateMigrationTask.class.php
r10444 r10445 52 52 } 53 53 54 file_put_contents($migrationManager->getMigrationsDir().'/'.$class.'_up.sql', $upSql); 54 $this->logSection('file+', $upFile = $migrationManager->getMigrationsDir().'/'.$class.'_up.sql'); 55 file_put_contents($upFile, $upSql); 55 56 $up = "\n \$this->executeSqlFromFile(dirname(__FILE__).'/{$class}_up.sql');"; 56 57 … … 72 73 } 73 74 74 file_put_contents($migrationManager->getMigrationsDir().'/'.$class.'_down.sql', $downSql); 75 $this->logSection('file+', $downFile = $migrationManager->getMigrationsDir().'/'.$class.'_down.sql'); 76 file_put_contents($downFile, $downSql); 75 77 $down = "\n \$this->executeSqlFromFile(dirname(__FILE__).'/{$class}_down.sql');"; 76 78 } plugins/sfPropelPlugin/trunk/lib/task/sfPropelGenerateMigrationTask.class.php
r10443 r10445 52 52 } 53 53 54 file_put_contents($migrationManager->getMigrationsDir().'/'.$class.'_up.sql', $upSql); 54 $this->logSection('file+', $upFile = $migrationManager->getMigrationsDir().'/'.$class.'_up.sql'); 55 file_put_contents($upFile, $upSql); 55 56 $up = "\n \$this->executeSqlFromFile(dirname(__FILE__).'/{$class}_up.sql');"; 56 57 … … 72 73 } 73 74 74 file_put_contents($migrationManager->getMigrationsDir().'/'.$class.'_down.sql', $downSql); 75 $this->logSection('file+', $downFile = $migrationManager->getMigrationsDir().'/'.$class.'_down.sql'); 76 file_put_contents($downFile, $downSql); 75 77 $down = "\n \$this->executeSqlFromFile(dirname(__FILE__).'/{$class}_down.sql');"; 76 78 }