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

Changeset 12336


Ignore:
Timestamp:
Jul 22, 2009, 3:22:23 PM (14 years ago)
Author:
ebihara
Message:

#4144:fixed the opMigration loads generated migration scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/migration/opMigration.class.php

    r12257 r12336  
    242242  }
    243243
     244  public function loadMigrationClass($name, $path = null)
     245  {
     246    // ignores generated directory
     247    if (!is_null($path) && 'generated' === basename(dirname($path)))
     248    {
     249      return false;
     250    }
     251
     252    return parent::loadMigrationClass($name, $path);
     253  }
     254
    244255  public function getVersion()
    245256  {
     
    291302    }
    292303
    293     $files = sfFinder::type('file')->name('*.php')->in($directory);
     304    $files = sfFinder::type('file')->name('*.php')->prune('generated')->in($directory);
    294305    $iterator = new CompareMigrateDirectoryVersionFilterIterator($files, str_replace('-dev', '', $version), $direction);
    295306    $targets = array();
Note: See TracChangeset for help on using the changeset viewer.