ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 12693


Ignore:
Timestamp:
Aug 18, 2009, 3:09:08 PM (13 years ago)
Author:
ebihara
Message:

#4250:added that --no-execute-generate and --only-execute-generate options to openpne:migration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/task/openpneMigrateTask.class.php

    r12338 r12693  
    2626      new sfCommandOption('no-update-plugin', null, sfCommandOption::PARAMETER_NONE, 'Do not update plugins'),
    2727      new sfCommandOption('no-build-model', null, sfCommandOption::PARAMETER_NONE, 'Do not build model classes'),
     28      new sfCommandOption('no-execute-generate', null, sfCommandOption::PARAMETER_NONE, 'Do not execute generated script'),
     29      new sfCommandOption('only-execute-generate', null, sfCommandOption::PARAMETER_NONE, 'Execute only generated script'),
    2830    ));
    2931
     
    7577        'revision' => $options['to-revision'],
    7678      );
    77       $this->migrateFromScript($target, $databaseManager, $params);
    78     }
    79 
    80     $this->migrateFromDiff();
     79
     80      if (!$options['only-execute-generate'])
     81      {
     82        $this->migrateFromScript($target, $databaseManager, $params);
     83      }
     84    }
     85
     86    if (!$options['no-execute-generate'])
     87    {
     88      $this->migrateFromDiff();
     89    }
    8190
    8291    $targets = array_merge($targets, $installedPlugins);
Note: See TracChangeset for help on using the changeset viewer.