Development

Changeset 10445

You must first sign up to be able to contribute.

Changeset 10445

Show
Ignore:
Timestamp:
07/23/08 23:18:01 (5 years ago)
Author:
Kris.Wallsmith
Message:

sfPropelPlugin: added call to ->logSection() on creation of initial migration SQL files

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfPropelPlugin/branches/1.3/lib/task/sfPropelGenerateMigrationTask.class.php

    r10444 r10445  
    5252      } 
    5353       
    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); 
    5556      $up = "\n    \$this->executeSqlFromFile(dirname(__FILE__).'/{$class}_up.sql');"; 
    5657       
     
    7273        } 
    7374         
    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); 
    7577        $down = "\n    \$this->executeSqlFromFile(dirname(__FILE__).'/{$class}_down.sql');"; 
    7678      } 
  • plugins/sfPropelPlugin/trunk/lib/task/sfPropelGenerateMigrationTask.class.php

    r10443 r10445  
    5252      } 
    5353       
    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); 
    5556      $up = "\n    \$this->executeSqlFromFile(dirname(__FILE__).'/{$class}_up.sql');"; 
    5657       
     
    7273        } 
    7374         
    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); 
    7577        $down = "\n    \$this->executeSqlFromFile(dirname(__FILE__).'/{$class}_down.sql');"; 
    7678      }